[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Thu Oct 30 02:33:25 UTC 2008


gordonp
Wed Oct 29 22:33:25 EDT 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test
In directory dev.open-bio.org:/tmp/cvs-serv10500/src/main/org/biomoby/service/test

Modified Files:
	MobyServletTestCase.java ServletTester.java 
Log Message:
Updates related to SAWSDL wrapping Web Service implementation
moby-live/Java/src/main/org/biomoby/service/test MobyServletTestCase.java,1.9,1.10 ServletTester.java,1.4,1.5
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test/MobyServletTestCase.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test/MobyServletTestCase.java	2008/03/13 22:58:10	1.9
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test/MobyServletTestCase.java	2008/10/30 02:33:25	1.10
@@ -8,6 +8,9 @@
 
 import org.biomoby.service.MobyServlet;
 
+import org.biomoby.client.CentralImpl;
+import org.biomoby.shared.Central;
+import org.biomoby.shared.CentralCached;
 import org.biomoby.shared.MobyDataType;
 import org.biomoby.shared.parser.ServiceException;
 import org.biomoby.shared.data.*;
@@ -284,6 +287,12 @@
 	    // that is for a more specialized service such as ACDService)
 	    ServletTester tester = new ServletTester(SERVLET_TEST_WEBXML);
 
+	    // Clear the ontology cache
+	    Central central = CentralImpl.getDefaultCentral(null);
+	    if(central instanceof CentralCached){
+		((CentralCached) central).removeFromCache(null);
+	    }
+
 	    // A useful side effect of an object instance is that it
 	    // can use the classloader that loaded it to find resources
 	    // (there is no class instance get a classloader from in static methods) 

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test/ServletTester.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test/ServletTester.java	2007/12/17 18:31:09	1.4
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test/ServletTester.java	2008/10/30 02:33:25	1.5
@@ -172,6 +172,7 @@
 	}
 
 	MobyRequest mr = new MobyRequest(worker);
+	//System.err.println("test service desc: " + testService);
 	mr.setService(testService);
 	mr.setInput(testData);
         long startTime = System.currentTimeMillis();




More information about the MOBY-guts mailing list