use of com.sequenceiq.environment.credential.exception.CredentialVerificationException in project cloudbreak by hortonworks.
the class SearchCauseExceptionMapperTest method testGetResponseStatusWhenHasOneDepthsCauseWithDefaultMapper.
@Test
public void testGetResponseStatusWhenHasOneDepthsCauseWithDefaultMapper() {
Response.Status actual = underTest.getResponseStatus(new CredentialVerificationException("", new Exception()));
Assertions.assertEquals(Response.Status.BAD_REQUEST, actual);
}
use of com.sequenceiq.environment.credential.exception.CredentialVerificationException in project cloudbreak by hortonworks.
the class SearchCauseExceptionMapperTest method testGetResponseStatusWhenHasOnlyOneCause.
@Test
public void testGetResponseStatusWhenHasOnlyOneCause() {
Response.Status actual = underTest.getResponseStatus(new CredentialVerificationException("", new NotFoundException()));
Assertions.assertEquals(Response.Status.NOT_FOUND, actual);
}
use of com.sequenceiq.environment.credential.exception.CredentialVerificationException in project cloudbreak by hortonworks.
the class SearchCauseExceptionMapperTest method testGetResponseStatusWhenHasTwoDepthsCauseWithDefaultMapper.
@Test
public void testGetResponseStatusWhenHasTwoDepthsCauseWithDefaultMapper() {
Response.Status actual = underTest.getResponseStatus(new CredentialVerificationException("", new Exception(new Exception())));
Assertions.assertEquals(Response.Status.BAD_REQUEST, actual);
}
Aggregations