Created
March 28, 2011 12:40
-
-
Save emmanuelbernard/890394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
cfg.configure( | |
adapter, | |
Collections.singletonMap( AvailableSettings.VALIDATION_FACTORY, token ) | |
); | |
+ cfg.buildEntityManagerFactory(); | |
fail( "Was expecting error as token did not implement ValidatorFactory" ); | |
} | |
catch ( HibernateException e ) { | |
// probably the condition we want but unfortunately the exception is not specific | |
// and the pertinent info is in a cause | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment