HHH-12801 Adjust the assertion to the new message generated by JDK 11
This commit is contained in:
parent
5ec70ec22e
commit
99b4f3c24a
|
@ -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