Skip to content

Commit

Permalink
OGM-1377 Make RemoteAuthenticationFailureTest failures more informative
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Jan 24, 2018
1 parent 000c8e6 commit c6ecd14
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -49,9 +49,8 @@ public void testAuthenticationFailureAtStartUp() throws Exception {
connectToRemoteDatastore( properties );
fail( "Credentials should be invalid" );
}
catch (Exception e) {
catch (HibernateException e) {
// Unable to start datastore provider
assertThat( e ).isInstanceOf( HibernateException.class );
assertThat( e.getMessage() ).startsWith( "OGM000071" );
assertThat( e.getCause().getMessage() ).startsWith( "OGM001419" );
assertThat( e.getCause().getMessage() ).contains( "Unauthorized" );
Expand Down

0 comments on commit c6ecd14

Please sign in to comment.