You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by st...@apache.org on 2005/08/02 10:46:15 UTC

svn commit: r226972 - /incubator/jackrabbit/trunk/core/src/test/org/apache/jackrabbit/test/api/ValueFactoryTest.java

Author: stefan
Date: Tue Aug  2 01:46:13 2005
New Revision: 226972

URL: http://svn.apache.org/viewcvs?rev=226972&view=rev
Log:
fixed incorrect message in ValueFactoryTest.testValueFormatException 

Modified:
    incubator/jackrabbit/trunk/core/src/test/org/apache/jackrabbit/test/api/ValueFactoryTest.java

Modified: incubator/jackrabbit/trunk/core/src/test/org/apache/jackrabbit/test/api/ValueFactoryTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/core/src/test/org/apache/jackrabbit/test/api/ValueFactoryTest.java?rev=226972&r1=226971&r2=226972&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/core/src/test/org/apache/jackrabbit/test/api/ValueFactoryTest.java (original)
+++ incubator/jackrabbit/trunk/core/src/test/org/apache/jackrabbit/test/api/ValueFactoryTest.java Tue Aug  2 01:46:13 2005
@@ -251,7 +251,8 @@
                     try {
                         value = valueFactory.createValue(dateValueFail,PropertyType.DATE);
                         fail("Conversion from String " + dateValueFail
-                                + " to a Date value should throw ValueFormatException.");
+                                + " to a " + PropertyType.nameFromValue(types[i])
+                                + " value should throw ValueFormatException.");
                     } catch (ValueFormatException vfe) {
                         //ok
                     }
@@ -261,7 +262,8 @@
                     try {
                         value = valueFactory.createValue(doubleValueFail,PropertyType.DOUBLE);
                         fail("Conversion from String " + doubleValueFail
-                            + " to a Date value should throw ValueFormatException.");
+                                + " to a " + PropertyType.nameFromValue(types[i])
+                                + " value should throw ValueFormatException.");
                     } catch (ValueFormatException vfe) {
                         //ok
                     }
@@ -271,7 +273,8 @@
                     try {
                         value = valueFactory.createValue(longValueFail,PropertyType.LONG);
                         fail("Conversion from String " + longValueFail
-                            + " to a Date value should throw ValueFormatException.");
+                                + " to a " + PropertyType.nameFromValue(types[i])
+                                + " value should throw ValueFormatException.");
                     } catch (ValueFormatException vfe) {
                         //ok
                     }
@@ -281,7 +284,8 @@
                     try {
                         value = valueFactory.createValue(nameValueFail,PropertyType.NAME);
                         fail("Conversion from String " + nameValueFail
-                            + " to a Date value should throw ValueFormatException.");
+                                + " to a " + PropertyType.nameFromValue(types[i])
+                                + " value should throw ValueFormatException.");
                     } catch (ValueFormatException vfe) {
                         //ok
                     }
@@ -291,7 +295,8 @@
                     try {
                         value = valueFactory.createValue(pathValueFail,PropertyType.PATH);
                         fail("Conversion from String " + pathValueFail
-                            + " to a Date value should throw ValueFormatException.");
+                                + " to a " + PropertyType.nameFromValue(types[i])
+                                + " value should throw ValueFormatException.");
                     } catch (ValueFormatException vfe) {
                         //ok
                     }