jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1221302 - /jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/api/MicroKernelTest.java
Date Tue, 20 Dec 2011 15:01:11 GMT
Author: thomasm
Date: Tue Dec 20 15:01:11 2011
New Revision: 1221302

URL: http://svn.apache.org/viewvc?rev=1221302&view=rev
Log:
Add forgotten fail(). At some point we should use JUnit Contrib AssertThrows :-)

Modified:
    jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/api/MicroKernelTest.java

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/api/MicroKernelTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/api/MicroKernelTest.java?rev=1221302&r1=1221301&r2=1221302&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/api/MicroKernelTest.java
(original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/api/MicroKernelTest.java
Tue Dec 20 15:01:11 2011
@@ -26,6 +26,7 @@ import org.junit.runners.Parameterized;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 
 @RunWith(Parameterized.class)
 public class MicroKernelTest extends MultiMkTestBase {
@@ -185,8 +186,8 @@ public class MicroKernelTest extends Mul
         head = mk.commit("/", "+\"a\" : {} \n+\"b\" : {} \n", head, "");
         try {
             mk.commit("/", ">\"a\" : \"b\"  ", head, "");
-        }
-        catch (MicroKernelException e) {
+            fail();
+        } catch (MicroKernelException e) {
             // expected
         }
     }
@@ -204,8 +205,8 @@ public class MicroKernelTest extends Mul
 
         try {
             mk.commit("/", ">\"b\" : \"a/b\"", head, "");
-        }
-        catch (MicroKernelException e) {
+            fail();
+        } catch (MicroKernelException e) {
             // expected
         }
     }
@@ -223,8 +224,8 @@ public class MicroKernelTest extends Mul
 
         try {
             mk.commit("/", "-\"a\" \n +\"b/x\" : {}", head, "");
-        }
-        catch (MicroKernelException e) {
+            fail();
+        } catch (MicroKernelException e) {
             // expected
         }
     }



Mime
View raw message