[CJ-dev] commonjava-projects/commonjava-diff/src/test/org/commonjava/diff DiffEngineTest.java,1.1,1.
Brought to you by:
johnqueso
From: <joh...@co...> - 2004-02-20 21:25:32
|
Update of /cvsroot/commonjava/commonjava-projects/commonjava-diff/src/test/org/commonjava/diff In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11430/src/test/org/commonjava/diff Modified Files: DiffEngineTest.java Log Message: corrected versioning differences...everything is up to date. Index: DiffEngineTest.java =================================================================== RCS file: /cvsroot/commonjava/commonjava-projects/commonjava-diff/src/test/org/commonjava/diff/DiffEngineTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- DiffEngineTest.java 17 Jan 2004 04:12:47 -0000 1.1 +++ DiffEngineTest.java 20 Feb 2004 21:14:08 -0000 1.2 @@ -77,11 +77,12 @@ { System.out.println("test for DiffOperation[] compute(ReadableByteChannel, ReadableByteChannel) with real files."); - FileInputStream in1 = new FileInputStream("./src/test/DiffEngineTest.cls"); + String srcDir = System.getProperty("diff-test-src", "./src/test"); + FileInputStream in1 = new FileInputStream(srcDir + "/DiffEngineTest.cls"); FileChannel inChannel1 = in1.getChannel(); MappedByteBuffer map1 = inChannel1.map(FileChannel.MapMode.READ_ONLY, 0, inChannel1.size()); - FileInputStream in2 = new FileInputStream("./src/test/DiffEngineTest2.cls"); + FileInputStream in2 = new FileInputStream(srcDir + "/DiffEngineTest2.cls"); FileChannel inChannel2 = in2.getChannel(); MappedByteBuffer map2 = inChannel2.map(FileChannel.MapMode.READ_ONLY, 0, inChannel2.size()); @@ -103,11 +104,12 @@ { System.out.println("test for DiffOperation[] compute(ReadableByteChannel, ReadableByteChannel) with real files."); - FileInputStream in1 = new FileInputStream("./src/test/developer-nirvana-notes.sxw"); + String srcDir = System.getProperty("diff-test-src", "./src/test"); + FileInputStream in1 = new FileInputStream(srcDir + "/developer-nirvana-notes.sxw"); FileChannel inChannel1 = in1.getChannel(); MappedByteBuffer map1 = inChannel1.map(FileChannel.MapMode.READ_ONLY, 0, inChannel1.size()); - FileInputStream in2 = new FileInputStream("./src/test/developer-nirvana-notes2.sxw"); + FileInputStream in2 = new FileInputStream(srcDir + "/developer-nirvana-notes2.sxw"); FileChannel inChannel2 = in2.getChannel(); MappedByteBuffer map2 = inChannel2.map(FileChannel.MapMode.READ_ONLY, 0, inChannel2.size()); |