jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r706660 - /jackrabbit/trunk/jackrabbit-spi/src/test/java/org/apache/jackrabbit/spi/QValueFactoryTest.java
Date Tue, 21 Oct 2008 15:33:15 GMT
Author: reschke
Date: Tue Oct 21 08:33:14 2008
New Revision: 706660

URL: http://svn.apache.org/viewvc?rev=706660&view=rev
Log:
In the tests for creating QValue instances with null values, also consider a NullPointerException
as legal (in addition to IllegalArgumentException)

Modified:
    jackrabbit/trunk/jackrabbit-spi/src/test/java/org/apache/jackrabbit/spi/QValueFactoryTest.java

Modified: jackrabbit/trunk/jackrabbit-spi/src/test/java/org/apache/jackrabbit/spi/QValueFactoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi/src/test/java/org/apache/jackrabbit/spi/QValueFactoryTest.java?rev=706660&r1=706659&r2=706660&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi/src/test/java/org/apache/jackrabbit/spi/QValueFactoryTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi/src/test/java/org/apache/jackrabbit/spi/QValueFactoryTest.java
Tue Oct 21 08:33:14 2008
@@ -182,13 +182,17 @@
             factory.create((Calendar) null);
             fail();
         } catch (IllegalArgumentException e) {
-            // ok
+          // ok
+        } catch (NullPointerException e) {
+          // ok
         }
         try {
             factory.create(null, PropertyType.DATE);
             fail();
         } catch (IllegalArgumentException e) {
-            // ok
+          // ok
+        } catch (NullPointerException e) {
+          // ok
         }
     }
 
@@ -215,7 +219,9 @@
             factory.create(null, PropertyType.REFERENCE);
             fail();
         } catch (IllegalArgumentException e) {
-            // ok
+          // ok
+        } catch (NullPointerException e) {
+          // ok
         }
     }
 
@@ -256,7 +262,9 @@
             factory.create((Name) null);
             fail();
         } catch (IllegalArgumentException e) {
-            // ok
+          // ok
+        } catch (NullPointerException e) {
+          // ok
         }
     }
 
@@ -308,7 +316,9 @@
             factory.create((Path) null);
             fail();
         } catch (IllegalArgumentException e) {
-            // ok
+          // ok
+        } catch (NullPointerException e) {
+          // ok
         }
     }
 
@@ -361,19 +371,25 @@
             factory.create((byte[]) null);
             fail();
         } catch (IllegalArgumentException e) {
-            // ok
+          // ok
+        } catch (NullPointerException e) {
+          // ok
         }
         try {
             factory.create((InputStream) null);
             fail();
         } catch (IllegalArgumentException e) {
-            // ok
+          // ok
+        } catch (NullPointerException e) {
+          // ok
         }
         try {
             factory.create((File) null);
             fail();
         } catch (IllegalArgumentException e) {
-            // ok
+          // ok
+        } catch (NullPointerException e) {
+          // ok
         }
     }
 



Mime
View raw message