use of com.sequenceiq.environment.api.v1.credential.model.response.CredentialResponses in project cloudbreak by hortonworks.
the class EnvironmentServiceIntegrationTest method testCredentialList.
@Test
public void testCredentialList() {
credentialRepository.save(credential);
CredentialResponses results = client.credentialV1Endpoint().list();
assertTrue(results.getResponses().stream().anyMatch(credentialResponse -> credentialResponse.getName().equals(credential.getName())), String.format("Result set should have credential with name: %s", credential.getName()));
}
Aggregations