[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Tue Jun 9 19:16:42 UTC 2009
gordonp
Tue Jun 9 15:16:42 EDT 2009
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/util
In directory dev.open-bio.org:/tmp/cvs-serv20505/src/main/ca/ucalgary/services/util
Modified Files:
MobySpecWrapper.java
Log Message:
Added MobyUnitTest and spec URL support
moby-live/Java/src/main/ca/ucalgary/services/util MobySpecWrapper.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/util/MobySpecWrapper.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/util/MobySpecWrapper.java 2008/10/30 02:33:24 1.2
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/util/MobySpecWrapper.java 2009/06/09 19:16:41 1.3
@@ -1,5 +1,8 @@
package ca.ucalgary.services.util;
+import org.biomoby.shared.MobyUnitTest;
+
+import java.net.URL;
import java.util.*;
/**
@@ -14,6 +17,7 @@
private Map<String,String> serviceDescs;
private Map<String,String> providerURIs;
private Map<String,String> centralEndpoints;
+ private URL specURL;
private String contactEmail;
private Map<String,Map<String,String>> serviceInputs;
@@ -23,6 +27,7 @@
private Map<String,Map<String,String>> serviceOutputs;
private Map<String,Map<String,String>> serviceOutputFormats;
private Map<String,Map<String,String>> fixedParams;
+ private Map<String,MobyUnitTest[]> unitTests;
public MobySpecWrapper(){
serviceNames = new HashMap<String,String>();
@@ -38,7 +43,8 @@
fixedParams = new HashMap<String,Map<String,String>>();
serviceInputFormats = new HashMap<String,Map<String,String>>();
serviceSecondaryFormats = new HashMap<String,Map<String,String>>();
- serviceOutputFormats = new HashMap<String,Map<String,String>>();
+ serviceOutputFormats = new HashMap<String,Map<String,String>>();
+ unitTests = new HashMap<String,MobyUnitTest[]>();
}
public String[] getServiceNames(){
@@ -49,6 +55,17 @@
currentService = serviceToReport;
}
+ /**
+ * location of the WSDL, CGI form, etc., only one per class instance
+ */
+ public void setSpecURL(URL serviceSpecURL){
+ specURL = serviceSpecURL;
+ }
+
+ public URL getSpecURL(){
+ return specURL;
+ }
+
public String getServiceName(){
return currentService;
}
@@ -153,10 +170,20 @@
}
public void setFixedParams(Map<String,String> params){
- fixedParams.put(currentService, params);
+ fixedParams.put(currentService, params);
}
public Map<String,String> getFixedParams(){
- return fixedParams.get(currentService);
+ return fixedParams.get(currentService);
}
+
+ public void setUnitTests(MobyUnitTest[] tests){
+ unitTests.put(currentService, tests);
+ }
+
+ public MobyUnitTest[] getUnitTests(){
+ return unitTests.get(currentService);
+ }
+
+
}
More information about the MOBY-guts
mailing list