[MOBY-guts] biomoby commit
Eddie Kawas
kawas at dev.open-bio.org
Tue Oct 21 16:38:45 UTC 2008
kawas
Tue Oct 21 12:38:44 EDT 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory dev.open-bio.org:/tmp/cvs-serv21434/src/main/org/biomoby/shared
Modified Files:
MobyService.java
Log Message:
committing additions to the class that augment MobyService with unit testing code
moby-live/Java/src/main/org/biomoby/shared MobyService.java,1.24,1.25
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java 2008/03/02 12:45:26 1.24
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java 2008/10/21 16:38:44 1.25
@@ -52,6 +52,8 @@
protected String id = null;
protected String lsid = null;
protected MobyServiceType serviceType;
+ // moby unit test object
+ protected MobyUnitTest unitTest = null;
public static final int UNCHECKED = 0;
public static final int DEAD= 1;
@@ -144,6 +146,8 @@
clone.setSignatureURL(getSignatureURL());
clone.setPathToRDF(getPathToRDF());
clone.setRDF(getRDF());
+ clone.setUnitTest(getUnitTest());
+
clone.serviceStatus = serviceStatus;
clone.statusChecks = statusChecks;
for(MobyPrimaryData primary: getPrimaryInputs()){
@@ -265,6 +269,24 @@
}
/**
+ *
+ * @return the MobyUnitTest object associated with this service
+ */
+ public MobyUnitTest getUnitTest() {
+ return unitTest;
+ }
+
+ /**
+ *
+ * @param unitTest
+ * the MobyUnitTest object to associate with this service
+ */
+ public void setUnitTest(MobyUnitTest unitTest) {
+ if (unitTest != null)
+ this.unitTest = unitTest;
+ }
+
+ /**
* Return a URL where this service is being served from. It is a
* URL where the clients of this service are going when they want
* to use it. <p>
@@ -482,6 +504,13 @@
buf.append ("Signature URL: " + signatureURL + "\n");
buf.append ("Path to RDF: " + pathToRDF + "\n");
if (id != null) buf.append ("ID: " + id + "\n");
+
+ // print unitTest information for this service
+ if (unitTest != null) {
+ buf.append(unitTest.toString());
+ } else {
+ buf.append("Unit Test: None available\n");
+ }
buf.append ("Primary inputs:\n");
for (Enumeration en = primaryInputs.elements(); en.hasMoreElements(); )
More information about the MOBY-guts
mailing list