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 5ec70ec22e
commit 99b4f3c24a
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" ) );
}
}