@Test public void testGetTenantsList() { List<ITenant> tenants = tenantService.getTenantsList(); assertEquals(tenants.size(), 1); }
public List<ITenant> getTenantsList() { List<ITenant> rslt = new ArrayList<ITenant>(tenantDao.getAllTenants()); Collections.sort(rslt); return rslt; }
TenantService { public List<ITenant> getTenantsList() { List<ITenant> rslt = new ArrayList<ITenant>(tenantDao.getAllTenants()); Collections.sort(rslt); return rslt; } }
TenantService { public List<ITenant> getTenantsList() { List<ITenant> rslt = new ArrayList<ITenant>(tenantDao.getAllTenants()); Collections.sort(rslt); return rslt; }  }
TenantService { public List<ITenant> getTenantsList() { List<ITenant> rslt = new ArrayList<ITenant>(tenantDao.getAllTenants()); Collections.sort(rslt); return rslt; }  @PostConstruct void init(); ITenant getTenantByFName(final String fname); List<ITenant> getTenantsList(); ITenant createTenant(
            final String name,
            final String fname,
            final Map<String, String> attributes,
            final Set<String> skipListenerFnames,
            final List<TenantOperationResponse> responses); ITenant updateTenant(
            final ITenant tenant,
            final Map<String, String> attributes,
            final List<TenantOperationResponse> responses); void deleteTenantByFName(String fname, List<TenantOperationResponse> responses); List<ITenantOperationsListener> getOptionalOperationsListeners(); Set<ITenantManagementAction> getAllAvaialableActions(); ITenantManagementAction getAction(final String fname); boolean nameExists(final String name); boolean fnameExists(final String fname); void validateName(final String name); void validateFname(final String fname); void validateAttribute(final String key, final String value); }
TenantService { public List<ITenant> getTenantsList() { List<ITenant> rslt = new ArrayList<ITenant>(tenantDao.getAllTenants()); Collections.sort(rslt); return rslt; }  @PostConstruct void init(); ITenant getTenantByFName(final String fname); List<ITenant> getTenantsList(); ITenant createTenant(
            final String name,
            final String fname,
            final Map<String, String> attributes,
            final Set<String> skipListenerFnames,
            final List<TenantOperationResponse> responses); ITenant updateTenant(
            final ITenant tenant,
            final Map<String, String> attributes,
            final List<TenantOperationResponse> responses); void deleteTenantByFName(String fname, List<TenantOperationResponse> responses); List<ITenantOperationsListener> getOptionalOperationsListeners(); Set<ITenantManagementAction> getAllAvaialableActions(); ITenantManagementAction getAction(final String fname); boolean nameExists(final String name); boolean fnameExists(final String fname); void validateName(final String name); void validateFname(final String fname); void validateAttribute(final String key, final String value);  }