[Mulgara-svn] r513 - branches/nw-interface/src/jar/client-jrdf/java/org/mulgara/client/jrdf/test
pag at mulgara.org
pag at mulgara.org
Mon Nov 5 04:39:20 UTC 2007
Author: pag
Date: 2007-11-04 22:39:19 -0600 (Sun, 04 Nov 2007)
New Revision: 513
Modified:
branches/nw-interface/src/jar/client-jrdf/java/org/mulgara/client/jrdf/test/ClientGraphUnitTest.java
Log:
Removed dependency on side effects on the answerBean when a query is made on it.
Modified: branches/nw-interface/src/jar/client-jrdf/java/org/mulgara/client/jrdf/test/ClientGraphUnitTest.java
===================================================================
--- branches/nw-interface/src/jar/client-jrdf/java/org/mulgara/client/jrdf/test/ClientGraphUnitTest.java 2007-11-05 04:38:30 UTC (rev 512)
+++ branches/nw-interface/src/jar/client-jrdf/java/org/mulgara/client/jrdf/test/ClientGraphUnitTest.java 2007-11-05 04:39:19 UTC (rev 513)
@@ -193,15 +193,13 @@
log.debug("Testing Answer implementation");
//get all statments from the graph
- Answer answer = this.getEntireGraph(this.graphURI);
+ Answer answer = this.getEntireGraph(graphURI);
//create a Client Graph from it.
- ClientGraph client = AbstractGraphFactory.createGraph(answer,
- answerBean.getSession());
+ ClientGraph client = AbstractGraphFactory.createGraph(answer, answerBean.getSession(serverURI));
//ensure the client is not null
- assertNotNull("AbstractGraphFactory.createGraph(Answer) returned a null " +
- "ClientGraph.", client);
+ assertNotNull("AbstractGraphFactory.createGraph(Answer) returned a null ClientGraph.", client);
//close the graph
client.close();
@@ -244,9 +242,8 @@
public void testAnswerFind() throws Exception {
//create a Client Graph from it.
- Answer answer = this.getEntireGraph(this.graphURI);
- ClientGraph client = AbstractGraphFactory.createGraph(answer,
- answerBean.getSession());
+ Answer answer = this.getEntireGraph(graphURI);
+ ClientGraph client = AbstractGraphFactory.createGraph(answer, answerBean.getSession(serverURI));
GraphElementFactory factory = client.getElementFactory();
//-- FIND ALL --
@@ -533,8 +530,7 @@
public void testAnswerOutputRDF() throws Exception {
//create a Client Graph containing all statments
- ClientGraph client1 = AbstractGraphFactory.createGraph(this.getEntireGraph(this.
- graphURI), answerBean.getSession());
+ ClientGraph client1 = AbstractGraphFactory.createGraph(this.getEntireGraph(graphURI), answerBean.getSession(serverURI));
File rdfOutput1 = new File(CLIENT_TEST_FILE1);
this.outputRDF(rdfOutput1, client1);
@@ -544,8 +540,7 @@
this.interpreterBean.load(rdfOutput1, graph2);
//output new model
- ClientGraph client2 = AbstractGraphFactory.createGraph(this.getEntireGraph(
- graph2), answerBean.getSession());
+ ClientGraph client2 = AbstractGraphFactory.createGraph(this.getEntireGraph(graph2), answerBean.getSession(serverURI));
File rdfOutput2 = new File(CLIENT_TEST_FILE2);
this.outputRDF(rdfOutput2, client2);
More information about the Mulgara-svn
mailing list