jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1145632 - /jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java
Date Tue, 12 Jul 2011 15:20:38 GMT
Author: mduerig
Date: Tue Jul 12 15:20:38 2011
New Revision: 1145632

URL: http://svn.apache.org/viewvc?rev=1145632&view=rev
Log:
- path validation: adapted tests

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

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java?rev=1145632&r1=1145631&r2=1145632&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java (original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java Tue
Jul 12 15:20:38 2011
@@ -26,28 +26,28 @@ public class PathTest extends TestCase {
         try {
             PathUtils.getNextSlash("/{error", 1);
             fail();
-        } catch (AssertionError e) {
+        } catch (IllegalArgumentException e) {
             // expected
         }
 
         try {
             PathUtils.getPreviousSlash("error}", "error}".length() - 1);
             fail();
-        } catch (AssertionError e) {
+        } catch (IllegalArgumentException e) {
             // expected
         }
 
         try {
             PathUtils.getParentPath("invalid/path/");
             fail();
-        } catch (AssertionError e) {
+        } catch (IllegalArgumentException e) {
             // expected
         }
 
         try {
             PathUtils.getName("invalid/path/");
             fail();
-        } catch (AssertionError e) {
+        } catch (IllegalArgumentException e) {
             // expected
         }
 
@@ -136,7 +136,7 @@ public class PathTest extends TestCase {
         try {
             assertEquals(parent + "/" + child, PathUtils.concat(parent + "/", "/" + child));
             fail();
-        } catch (AssertionError e) {
+        } catch (IllegalArgumentException e) {
             // expected
         }
         try {



Mime
View raw message