@Override public ServerProfileSchemaDto getServerProfileSchema(String serverProfileSchemaId) throws ControlServiceException { return serverProfileService.findServerProfileSchema(serverProfileSchemaId); }
@Test public void testRemoveServerProfileSchemaById() { ServerProfileSchemaDto schemaDto = generateServerProfileSchema(null, null); serverProfileService.removeServerProfileSchemaById(schemaDto.getId()); Assert.assertNull(serverProfileService.findServerProfileSchema(schemaDto.getId())); }
serverProfileSchemaDto = serverProfileService.findServerProfileSchema(srvProfSchemaId); if (serverProfileSchemaDto == null) { throw new IncorrectParameterException("Can't update profile filter, "
serverProfileSchemaDto = generateServerProfileSchema(app.getId(), app.getTenantId()); } else { serverProfileSchemaDto = serverProfileService.findServerProfileSchema(serverSchemaId);
@Test public void testFindServerProfileSchema() { ApplicationDto app = generateApplicationDto(); generateServerProfileSchema(app.getId(), app.getTenantId()); generateServerProfileSchema(app.getId(), app.getTenantId()); generateServerProfileSchema(app.getId(), app.getTenantId()); generateServerProfileSchema(app.getId(), app.getTenantId()); ServerProfileSchemaDto expected = generateServerProfileSchema(app.getId(), app.getTenantId()); ServerProfileSchemaDto found = serverProfileService.findServerProfileSchema(expected.getId()); Assert.assertEquals(expected, found); }