use of com.sequenceiq.redbeams.api.endpoint.v4.databaseserver.responses.DatabaseServerV4Response in project cloudbreak by hortonworks.
the class DatabaseServerV4ControllerTest method testGetByCrn.
@Test
public void testGetByCrn() {
when(service.getByCrn(SERVER_CRN)).thenReturn(server);
when(databaseServerConfigToDatabaseServerV4ResponseConverter.convert(any())).thenReturn(serverResponse);
DatabaseServerV4Response response = underTest.getByCrn(SERVER_CRN);
assertEquals(serverResponse.getId().longValue(), response.getId().longValue());
}
Aggregations