From ca97e20c1529e42bf8e508e83061ba9057de5ecb Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 19 Jun 2013 15:28:03 +0100 Subject: [PATCH] JWS-61 test demonstrating compound option value problem with JABAWS client --- testsrc/compbio/ws/client/TestAAConWS.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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() -- 1.7.10.2