HHH-12801 Adjust the assertion to the new message generated by JDK 11

This commit is contained in:
Guillaume Smet 2018-07-13 14:39:01 +02:00
parent 9d36d1d91f
commit a9e20c18c5
1 changed files with 2 additions and 1 deletions

View File

@ -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" ) );
}
}