You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by mr...@apache.org on 2005/04/22 10:31:34 UTC

svn commit: r164194 - in /incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api: BooleanPropertyTest.java DatePropertyTest.java DoublePropertyTest.java LongPropertyTest.java ReferencePropertyTest.java StringPropertyTest.java

Author: mreutegg
Date: Fri Apr 22 01:31:33 2005
New Revision: 164194

URL: http://svn.apache.org/viewcvs?rev=164194&view=rev
Log:
Fix broken test cases, identified by Maxim.

Modified:
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/BooleanPropertyTest.java
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/DatePropertyTest.java
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/DoublePropertyTest.java
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/LongPropertyTest.java
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ReferencePropertyTest.java
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/StringPropertyTest.java

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/BooleanPropertyTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/BooleanPropertyTest.java?rev=164194&r1=164193&r2=164194&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/BooleanPropertyTest.java (original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/BooleanPropertyTest.java Fri Apr 22 01:31:33 2005
@@ -115,7 +115,7 @@
     public void testGetStream() throws RepositoryException, IOException {
         Value val = PropertyUtil.getValue(prop);
         BufferedInputStream in = new BufferedInputStream(val.getStream());
-        Value otherVal = prop.getValue();
+        Value otherVal = PropertyUtil.getValue(prop);
         InputStream ins = null;
         byte[] utf8bytes = otherVal.getString().getBytes(UTF8);
         // if yet utf-8 encoded these bytes should be equal

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/DatePropertyTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/DatePropertyTest.java?rev=164194&r1=164193&r2=164194&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/DatePropertyTest.java (original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/DatePropertyTest.java Fri Apr 22 01:31:33 2005
@@ -124,7 +124,7 @@
     public void testGetStream() throws RepositoryException, IOException {
         Value val = PropertyUtil.getValue(prop);
         BufferedInputStream in = new BufferedInputStream(val.getStream());
-        Value otherVal = prop.getValue();
+        Value otherVal = PropertyUtil.getValue(prop);
         InputStream ins = null;
         byte[] utf8bytes = otherVal.getString().getBytes(UTF8);
         // if yet utf-8 encoded these bytes should be equal

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/DoublePropertyTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/DoublePropertyTest.java?rev=164194&r1=164193&r2=164194&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/DoublePropertyTest.java (original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/DoublePropertyTest.java Fri Apr 22 01:31:33 2005
@@ -107,7 +107,7 @@
     public void testGetStream() throws RepositoryException, IOException {
         Value val = PropertyUtil.getValue(prop);
         BufferedInputStream in = new BufferedInputStream(val.getStream());
-        Value otherVal = prop.getValue();
+        Value otherVal = PropertyUtil.getValue(prop);
         InputStream ins = null;
         byte[] utf8bytes = otherVal.getString().getBytes();
         // if yet utf-8 encoded these bytes should be equal

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/LongPropertyTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/LongPropertyTest.java?rev=164194&r1=164193&r2=164194&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/LongPropertyTest.java (original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/LongPropertyTest.java Fri Apr 22 01:31:33 2005
@@ -106,7 +106,7 @@
     public void testGetStream() throws RepositoryException, IOException {
         Value val = PropertyUtil.getValue(prop);
         BufferedInputStream in = new BufferedInputStream(val.getStream());
-        Value otherVal = prop.getValue();
+        Value otherVal = PropertyUtil.getValue(prop);
         InputStream ins = null;
         byte[] utf8bytes = otherVal.getString().getBytes(UTF8);
         // if yet utf-8 encoded these bytes should be equal

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ReferencePropertyTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ReferencePropertyTest.java?rev=164194&r1=164193&r2=164194&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ReferencePropertyTest.java (original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ReferencePropertyTest.java Fri Apr 22 01:31:33 2005
@@ -170,7 +170,7 @@
      * Tests equals method of Reference value.
      */
     public void testEquals() throws RepositoryException {
-        Property prop2 = referencedNode.getProperty("jcr:uuid");
+        Property prop2 = referencedNode.getProperty(jcrUUID);
         assertTrue("Incorrect equals method of Reference value.",
                 PropertyUtil.equalValues(prop2.getValue(), prop.getValue()));
     }

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/StringPropertyTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/StringPropertyTest.java?rev=164194&r1=164193&r2=164194&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/StringPropertyTest.java (original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/StringPropertyTest.java Fri Apr 22 01:31:33 2005
@@ -174,7 +174,7 @@
     public void testGetStream() throws RepositoryException, IOException {
         Value val = PropertyUtil.getValue(prop);
         BufferedInputStream in = new BufferedInputStream(val.getStream());
-        Value otherVal = prop.getValue();
+        Value otherVal = PropertyUtil.getValue(prop);
         byte[] utf8bytes = otherVal.getString().getBytes(UTF8);
         // compare the bytearray with the bytes received from a Stream created with this String
         int i = 0;