jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r790603 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueDecimalTest.java
Date Thu, 02 Jul 2009 14:40:33 GMT
Author: reschke
Date: Thu Jul  2 14:40:33 2009
New Revision: 790603

URL: http://svn.apache.org/viewvc?rev=790603&view=rev
Log:
JCR-2085: add more test cases related to Decimal properties

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

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueDecimalTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueDecimalTest.java?rev=790603&r1=790602&r2=790603&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueDecimalTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueDecimalTest.java
Thu Jul  2 14:40:33 2009
@@ -37,8 +37,8 @@
  * with name {@link #propertyName1}.
  *
  * @test
- * @sources SetValueDoubleTest.java
- * @executeClass org.apache.jackrabbit.test.api.SetValueDoubleTest
+ * @sources SetValueDecimalTest.java
+ * @executeClass org.apache.jackrabbit.test.api.SetValueDecimalTest
  * @keywords level2
  */
 public class SetValueDecimalTest extends AbstractJCRTest {
@@ -84,13 +84,23 @@
      * Test the persistence of a property modified with an decimal parameter and
      * saved from the Session
      */
-    public void testDoubleSession() throws RepositoryException {
+    public void testDoubleValueSession() throws RepositoryException {
         property1.setValue(value);
         superuser.save();
         assertEquals("Decimal node property not saved", value.getDecimal(), property1.getValue().getDecimal());
     }
 
     /**
+     * Test the persistence of a property modified with an decimal parameter and
+     * saved from the Session
+     */
+    public void testDoubleSession() throws RepositoryException {
+        property1.setValue(value.getDecimal());
+        superuser.save();
+        assertEquals("Decimal node property not saved", value.getDecimal(), property1.getValue().getDecimal());
+    }
+
+    /**
      * Test the deletion of a property by assigning it a null value, saved from
      * the Session
      */



Mime
View raw message