jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r772624 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTest.java
Date Thu, 07 May 2009 11:58:43 GMT
Author: reschke
Date: Thu May  7 11:58:43 2009
New Revision: 772624

URL: http://svn.apache.org/viewvc?rev=772624&view=rev
Log:
JCR-2059: modify test so that Session.getProperty() gets used

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTest.java?rev=772624&r1=772623&r2=772624&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTest.java
Thu May  7 11:58:43 2009
@@ -46,6 +46,8 @@
      * two <code>Property</code> objects representing the same actual repository
      * item have been retrieved through two different sessions and one has been
      * modified.
+     * 
+     * @since JCR 2.0
      */
     public void testIsSameMustNotCompareStates()
             throws RepositoryException {
@@ -58,7 +60,7 @@
         // accuire the same property through a different session
         Session session = helper.getSuperuserSession();
         try {
-            Property prop2 = (Property) session.getItem(prop1.getPath());
+            Property prop2 = session.getProperty(prop1.getPath());
 
             // change the value of prop2
             prop2.setValue("value2");



Mime
View raw message