[Remoterengine-commits] r126 - pkg/RemoteREngine/inst/java_src/src/client/org/rosuda/REngine/remote/client/test
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Sep 10 20:00:43 CEST 2009
Author: ian_long
Date: 2009-09-10 20:00:43 +0200 (Thu, 10 Sep 2009)
New Revision: 126
Modified:
pkg/RemoteREngine/inst/java_src/src/client/org/rosuda/REngine/remote/client/test/RemoteREngineTest.java
Log:
Changed names of file in file transfer test to prevent client and server trying to use the same file
Modified: pkg/RemoteREngine/inst/java_src/src/client/org/rosuda/REngine/remote/client/test/RemoteREngineTest.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/client/org/rosuda/REngine/remote/client/test/RemoteREngineTest.java 2009-09-10 17:57:53 UTC (rev 125)
+++ pkg/RemoteREngine/inst/java_src/src/client/org/rosuda/REngine/remote/client/test/RemoteREngineTest.java 2009-09-10 18:00:43 UTC (rev 126)
@@ -188,20 +188,20 @@
{
System.out.println("* Test file transfer");
System.out.println(" generating pdf file in the server side");
- eng.parseAndEval( "pdf('test.pdf'); plot( rnorm(10) ) ;dev.off()" ) ;
+ eng.parseAndEval( "pdf('rgeneratedtest.pdf'); plot( rnorm(10) ) ;dev.off()" ) ;
System.out.println(" bring the file to the client");
- eng.fetchFile("test.pdf", "test.pdf", true) ;
- File clientfile = new File( "test.pdf" ) ;
+ eng.fetchFile("fetchedfile.pdf", "rgeneratedtest.pdf", true) ;
+ File clientfile = new File( System.getProperty("user.dir") + System.getProperty("file.separator") + "fetchedfile.pdf" ) ;
if( !clientfile.exists() ){
throw new TestException("Could not bring file from server");
}
System.out.println(" check that the server file has been deleted");
- boolean ok = ( (REXPLogical)eng.parseAndEval(" ! file.exists( 'test.pdf' ) ") ).isTRUE()[0] ;
+ boolean ok = ( (REXPLogical)eng.parseAndEval(" ! file.exists( 'rgeneratedtest.pdf' ) ") ).isTRUE()[0] ;
if( !ok ){
throw new TestException("server file was not deleted");
}
System.out.println(" push file to the server");
- eng.pushFile( "test.pdf", "filefromclient.pdf" , true ) ;
+ eng.pushFile( "fetchedfile.pdf", "filefromclient.pdf" , true ) ;
ok = ( (REXPLogical)eng.parseAndEval("file.exists( 'filefromclient.pdf' ) ") ).isTRUE()[0] ;
if( !ok ){
throw new TestException(" file was not transferred to the server");
More information about the Remoterengine-commits
mailing list