diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/customtype/EnumTypeTest.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/customtype/EnumTypeTest.java index 9af5bff98e..4a018a20ee 100644 --- a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/customtype/EnumTypeTest.java +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/customtype/EnumTypeTest.java @@ -42,6 +42,10 @@ public class EnumTypeTest extends BaseEnversJPAFunctionalTestCase { Assert.assertNotNull( values ); Assert.assertEquals( 1, values.size() ); - Assert.assertArrayEquals( new Object[] { "X", 0 }, values.get( 0 ) ); + Object[] results = values.get( 0 ); + Assert.assertEquals( "X", results[0] ); + // Compare the Strings to account for, as an example, Oracle + // returning a BigDecimal instead of an int. + Assert.assertEquals( "0", results[1] + "" ); } }