[exo-jcr-commits] exo-jcr SVN: r1084 - in jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl: value and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Dec 16 03:38:07 EST 2009


Author: tolusha
Date: 2009-12-16 03:38:07 -0500 (Wed, 16 Dec 2009)
New Revision: 1084

Modified:
   jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/storage/value/fs/TestFileIOChannel.java
   jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/value/TestPersistedValueData.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/value/fs/TestFileIOChannel.java
===================================================================
--- jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/storage/value/fs/TestFileIOChannel.java	2009-12-16 00:07:22 UTC (rev 1083)
+++ jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/storage/value/fs/TestFileIOChannel.java	2009-12-16 08:38:07 UTC (rev 1084)
@@ -110,10 +110,10 @@
       try
       {
          v1.getAsByteArray();
-         fail("IllegalStateException should have been thrown");
       }
       catch (IllegalStateException e)
       {
+         fail("IllegalStateException should not have been thrown");
       }
       channel.delete("testReadFromIOChannel");
       channel.commit();

Modified: jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/value/TestPersistedValueData.java
===================================================================
--- jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/value/TestPersistedValueData.java	2009-12-16 00:07:22 UTC (rev 1083)
+++ jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/value/TestPersistedValueData.java	2009-12-16 08:38:07 UTC (rev 1084)
@@ -71,10 +71,10 @@
       try
       {
          vd.getAsByteArray();
-         fail("IllegalStateException should have been thrown!");
       }
       catch (IllegalStateException e)
       {
+         fail("IllegalStateException should not have been thrown!");
       }
       assertTrue(vd.getAsStream() instanceof FileInputStream);
    }



More information about the exo-jcr-commits mailing list