[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Tue Jun 9 19:18:24 UTC 2009
gordonp
Tue Jun 9 15:18:24 EDT 2009
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services
In directory dev.open-bio.org:/tmp/cvs-serv20615/src/main/ca/ucalgary/services
Modified Files:
WrapperService.java
Log Message:
Added unit test support
moby-live/Java/src/main/ca/ucalgary/services WrapperService.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/WrapperService.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/WrapperService.java 2008/03/13 23:10:11 1.1
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/WrapperService.java 2009/06/09 19:18:24 1.2
@@ -3,6 +3,7 @@
import ca.ucalgary.services.util.MobySpecWrapper;
import org.biomoby.shared.MobyService;
+import org.biomoby.shared.MobyUnitTest;
import java.net.URL;
@@ -88,7 +89,15 @@
// Determine secondary parameters
setCoCInitParameter(MOBY_SECONDARYINPUT_PARAM, createSecondarySpecString(wrapperSpec));
- return super.createServiceFromConfig(request);
+ MobyService srvc = super.createServiceFromConfig(request);
+
+ if(wrapperSpec.getUnitTests() != null){
+ for(MobyUnitTest unitTest: wrapperSpec.getUnitTests()){
+ srvc.addUnitTest(unitTest);
+ }
+ }
+
+ return srvc;
}
public abstract String createInputSpecString(E wrapperSpec);
More information about the MOBY-guts
mailing list