From: Jim Procter Date: Wed, 19 Jun 2013 14:28:03 +0000 (+0100) Subject: JWS-61 test demonstrating compound option value problem with JABAWS client X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ca97e20c1529e42bf8e508e83061ba9057de5ecb;p=jabaws.git JWS-61 test demonstrating compound option value problem with JABAWS client --- diff --git a/testsrc/compbio/ws/client/TestAAConWS.java b/testsrc/compbio/ws/client/TestAAConWS.java index 19cd0b2..b6be0d7 100644 --- a/testsrc/compbio/ws/client/TestAAConWS.java +++ b/testsrc/compbio/ws/client/TestAAConWS.java @@ -3,7 +3,7 @@ package compbio.ws.client; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertNotNull; import static org.testng.Assert.fail; - +import static org.testng.Assert.assertTrue; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; @@ -25,6 +25,8 @@ import compbio.data.sequence.SequenceUtil; import compbio.metadata.AllTestSuit; import compbio.metadata.JobSubmissionException; import compbio.metadata.LimitExceededException; +import compbio.metadata.Option; +import compbio.metadata.Preset; import compbio.metadata.PresetManager; import compbio.metadata.ResultNotAvailableException; import compbio.metadata.RunnerConfig; @@ -135,6 +137,16 @@ public class TestAAConWS { } @Test(groups = {AllTestSuit.test_group_webservices}) + public void testRecoverArgsForPreset() throws Exception { + PresetManager presets = msaws.getPresets(); + for (Preset preset:presets.getPresets()) + { + List> args = preset.getArguments(msaws.getRunnerOptions()); + List opts = preset.getOptions(); + assertTrue(args.size()>=opts.size(),"Couldn't recover all Option items for preset "+preset.getName()); + } + } + @Test(groups = {AllTestSuit.test_group_webservices}) public void testPresetAnalize() throws FileNotFoundException, IOException { String CURRENT_DIRECTORY = SysPrefs.getCurrentDirectory()