HHH-12801 Adjust the assertion to the new message generated by JDK 11
This commit is contained in:
parent
9d36d1d91f
commit
a9e20c18c5
|
@ -35,7 +35,8 @@ public class SqlFunctionMetadataBuilderContributorIllegalClassArgumentTest
|
|||
fail("Should throw exception!");
|
||||
}
|
||||
catch (ClassCastException e) {
|
||||
assertTrue( e.getMessage().contains( "cannot be cast to org.hibernate.boot.spi.MetadataBuilderContributor" ) );
|
||||
assertTrue( e.getMessage().contains( "cannot be cast to" ) );
|
||||
assertTrue( e.getMessage().contains( "org.hibernate.boot.spi.MetadataBuilderContributor" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue