]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-3686: Comparisons of 'before and after' values of BigDecimal fields, which...
authorAron Roberts <aron@socrates.berkeley.edu>
Thu, 10 Nov 2011 19:36:06 +0000 (19:36 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Thu, 10 Nov 2011 19:36:06 +0000 (19:36 +0000)
services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java

index 8875a45e78f7089c30c6a7793ffae5585acda995..09c7b32efbd65b4bf872e6678849c43fd91c99cf 100644 (file)
@@ -650,7 +650,7 @@ public class CollectionObjectServiceTest extends AbstractServiceTestImpl {
         Assert.assertTrue(dimensionSubGroups.size() > 0, "No dimension subgroups were returned");
         DimensionSubGroup lengthDimension = dimensionSubGroups.get(0);
         Assert.assertNotNull(lengthDimension, "Length dimension was null");
-        Assert.assertEquals(lengthDimension.getValue().setScale(5), DIMENSION_VALUE_LENGTH.setScale(5),
+        Assert.assertTrue(lengthDimension.getValue().compareTo(DIMENSION_VALUE_LENGTH) == 0,
                 "Dimension length value returned didn't match expected value");
         
         /* No longer part of the "default" domain service tests for the CollectionObject record.