@Test(expected = IllegalArgumentException.class) public void testTenantByBlankFName() { tenantService.getTenantByFName(""); }
public ITenant getTenantByFName(final String fname) { if (StringUtils.isBlank(fname)) { String msg = "Argument 'fname' cannot be blank"; throw new IllegalArgumentException(msg); } return tenantDao.getTenantByFName(fname); }
TenantService { public ITenant getTenantByFName(final String fname) { if (StringUtils.isBlank(fname)) { String msg = "Argument 'fname' cannot be blank"; throw new IllegalArgumentException(msg); } return tenantDao.getTenantByFName(fname); } }
TenantService { public ITenant getTenantByFName(final String fname) { if (StringUtils.isBlank(fname)) { String msg = "Argument 'fname' cannot be blank"; throw new IllegalArgumentException(msg); } return tenantDao.getTenantByFName(fname); }  }
TenantService { public ITenant getTenantByFName(final String fname) { if (StringUtils.isBlank(fname)) { String msg = "Argument 'fname' cannot be blank"; throw new IllegalArgumentException(msg); } return tenantDao.getTenantByFName(fname); }  @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 ITenant getTenantByFName(final String fname) { if (StringUtils.isBlank(fname)) { String msg = "Argument 'fname' cannot be blank"; throw new IllegalArgumentException(msg); } return tenantDao.getTenantByFName(fname); }  @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);  }