import static org.testng.Assert.assertEquals;\r
import static org.testng.Assert.assertNotNull;\r
import static org.testng.Assert.fail;\r
-\r
+import static org.testng.Assert.assertTrue;\r
import java.io.File;\r
import java.io.FileInputStream;\r
import java.io.FileNotFoundException;\r
import compbio.metadata.AllTestSuit;\r
import compbio.metadata.JobSubmissionException;\r
import compbio.metadata.LimitExceededException;\r
+import compbio.metadata.Option;\r
+import compbio.metadata.Preset;\r
import compbio.metadata.PresetManager;\r
import compbio.metadata.ResultNotAvailableException;\r
import compbio.metadata.RunnerConfig;\r
\r
}\r
@Test(groups = {AllTestSuit.test_group_webservices})\r
+ public void testRecoverArgsForPreset() throws Exception {\r
+ PresetManager<AACon> presets = msaws.getPresets();\r
+ for (Preset<AACon> preset:presets.getPresets())\r
+ {\r
+ List<Option<AACon>> args = preset.getArguments(msaws.getRunnerOptions());\r
+ List opts = preset.getOptions();\r
+ assertTrue(args.size()>=opts.size(),"Couldn't recover all Option items for preset "+preset.getName());\r
+ }\r
+ }\r
+ @Test(groups = {AllTestSuit.test_group_webservices})\r
public void testPresetAnalize() throws FileNotFoundException, IOException {\r
\r
String CURRENT_DIRECTORY = SysPrefs.getCurrentDirectory()\r