]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-3686: Explicitly set scale for comparision of two BigDecimal values in Collect...
authorAron Roberts <aron@socrates.berkeley.edu>
Thu, 10 Nov 2011 15:59:29 +0000 (15:59 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Thu, 10 Nov 2011 15:59:29 +0000 (15:59 +0000)
services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java

index 3d6729025500c7806fccc81ce19f0676adcc3b00..8875a45e78f7089c30c6a7793ffae5585acda995 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(), DIMENSION_VALUE_LENGTH,
+        Assert.assertEquals(lengthDimension.getValue().setScale(5), DIMENSION_VALUE_LENGTH.setScale(5),
                 "Dimension length value returned didn't match expected value");
         
         /* No longer part of the "default" domain service tests for the CollectionObject record.