Author: tolusha
Date: 2009-12-17 09:02:12 -0500 (Thu, 17 Dec 2009)
New Revision: 1122
Modified:
jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/storage/fs/TestRandomValueIO.java
Log:
EXOJCR-300: test fix
Modified:
jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/storage/fs/TestRandomValueIO.java
===================================================================
---
jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/storage/fs/TestRandomValueIO.java 2009-12-17
14:00:47 UTC (rev 1121)
+++
jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/storage/fs/TestRandomValueIO.java 2009-12-17
14:02:12 UTC (rev 1122)
@@ -417,16 +417,6 @@
exv.update(new ByteArrayInputStream(update1String.getBytes()),
update1String.length(), pos);
- // test the value for correct stream
- BufferedInputStream vstream = new BufferedInputStream(exv.getStream());
- vstream.mark((int)exv.getLength() + 1);
-
- // first 2M of stream data must be same as on setProperty()
- compareStream(new FileInputStream(testFile), vstream, 0, 0, testFile.length());
-
- vstream.reset();
- compareStream(new ByteArrayInputStream(update1String.getBytes()), vstream, 0,
pos, update1String.length());
-
// apply to the Property and save
p.setValue(exv);
testRoot.save();
Show replies by date