[HHH-13912] AssertionError exception is thrown by SqlFunctionMetadataBuilderContributorIllegalClassArgumentTest when executing on IBM JDK 8
This commit is contained in:
parent
7fc829d9e8
commit
94c13058ac
|
@ -35,7 +35,13 @@ public class SqlFunctionMetadataBuilderContributorIllegalClassArgumentTest
|
|||
fail("Should throw exception!");
|
||||
}
|
||||
catch (ClassCastException e) {
|
||||
assertTrue( e.getMessage().contains( "cannot be cast to" ) );
|
||||
final String javaVendor = System.getProperty("java.vendor");
|
||||
|
||||
if (javaVendor != null && javaVendor.startsWith("IBM")) {
|
||||
assertTrue( e.getMessage().contains( "incompatible with" ) );
|
||||
} else {
|
||||
assertTrue( e.getMessage().contains( "cannot be cast to" ) );
|
||||
}
|
||||
assertTrue( e.getMessage().contains( "org.hibernate.boot.spi.MetadataBuilderContributor" ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue