Fixing bad test

This commit is contained in:
Francesco Chicchiriccò 2014-05-14 10:23:34 +02:00 committed by Stephan Klevenz
parent 397c82f1b1
commit 4e675fc223
1 changed files with 2 additions and 2 deletions

View File

@ -125,10 +125,10 @@ public class PrimitiveValueTest extends AbstractTest {
final ODataValue value = getClient().getObjectFactory().newPrimitiveValueBuilder(). final ODataValue value = getClient().getObjectFactory().newPrimitiveValueBuilder().
setType(EdmPrimitiveTypeKind.Time).setText(primitive).build(); setType(EdmPrimitiveTypeKind.Time).setText(primitive).build();
assertEquals(EdmPrimitiveTypeKind.Time, value.asPrimitive().getTypeKind()); assertEquals(EdmPrimitiveTypeKind.Time, value.asPrimitive().getTypeKind());
assertEquals(-780670.5063807, value.asPrimitive().toCastValue(BigDecimal.class)); assertEquals(BigDecimal.valueOf(-780670.5063807), value.asPrimitive().toCastValue(BigDecimal.class));
final ODataPrimitiveValue write = getClient().getObjectFactory().newPrimitiveValueBuilder(). final ODataPrimitiveValue write = getClient().getObjectFactory().newPrimitiveValueBuilder().
setType(EdmPrimitiveTypeKind.Time).setValue(-780670.5063807).build(); setType(EdmPrimitiveTypeKind.Time).setValue(BigDecimal.valueOf(-780670.5063807)).build();
assertEquals(primitive, write.toString()); assertEquals(primitive, write.toString());
} }