@Override public CTLSchemaDto getLatestCtlSchemaByFqnTenantIdAndApplicationId( String fqn, String tenantId, String applicationId) throws ControlServiceException { return ctlService.findLatestCtlSchemaByFqnAndTenantIdAndApplicationId(fqn, tenantId, applicationId); }
@Test public void testFindLatestCTLSchemaByFqn() { CTLSchemaDto latestTenantScope = ctlService.findLatestCtlSchemaByFqnAndTenantIdAndApplicationId(DEFAULT_FQN + 7, tenant.getId(), null); Assert.assertEquals(Integer.valueOf(78), latestTenantScope.getVersion()); CTLSchemaDto latestAppScope = ctlService.findLatestCtlSchemaByFqnAndTenantIdAndApplicationId(DEFAULT_FQN + 8, tenant.getId(), appDto.getId()); Assert.assertEquals(Integer.valueOf(81), latestAppScope.getVersion()); }