+++ /dev/null
-/* Copyright (c) 2009 Peter Troshin\r
- * \r
- * JAva Bioinformatics Analysis Web Services (JABAWS) @version: 1.0 \r
- * \r
- * This library is free software; you can redistribute it and/or modify it under the terms of the\r
- * Apache License version 2 as published by the Apache Software Foundation\r
- * \r
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\r
- * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache \r
- * License for more details.\r
- * \r
- * A copy of the license is in apache_license.txt. It is also available here:\r
- * @see: http://www.apache.org/licenses/LICENSE-2.0.txt\r
- * \r
- * Any republication or derived work distributed in source code form\r
- * must include this copyright and license notice.\r
- */\r
-\r
-package compbio.engine;\r
-\r
-import static org.testng.Assert.fail;\r
-\r
-import org.testng.annotations.Test;\r
-\r
-import compbio.engine.client.ConfiguredExecutable;\r
-import compbio.metadata.JobSubmissionException;\r
-import compbio.runner.msa.ClustalW;\r
-\r
-public class EngineConfiguratorTester {\r
-\r
- @Test\r
- public void testGetAsyncEngine() {\r
-\r
- ClustalW clustal = new ClustalW();\r
-\r
- try {\r
- SyncExecutor sEngine = Configurator.getSyncEngine(Configurator\r
- .configureExecutable(clustal));\r
- } catch (JobSubmissionException e) {\r
- e.printStackTrace();\r
- fail(e.getMessage());\r
- }\r
- }\r
-\r
- @Test\r
- public void testGetSyncEngine() {\r
- ClustalW clustal = new ClustalW();\r
- try {\r
- ConfiguredExecutable<ClustalW> confClust = Configurator\r
- .configureExecutable(clustal);\r
- AsyncExecutor aEngine = Configurator.getAsyncEngine(confClust);\r
- } catch (JobSubmissionException e) {\r
- e.printStackTrace();\r
- fail(e.getMessage());\r
- }\r
- }\r
-\r
-}\r