@Test(expected = IllegalStateException.class) public void testValidateFName() { tenantService.validateFname("W5FF?0"); }
public void validateFname(final String fname) { Validate.validState( TENANT_FNAME_VALIDATOR_PATTERN.matcher(fname).matches(), "Invalid tenant fname '%s' -- fnames must match %s .", fname, TENANT_FNAME_VALIDATOR_REGEX); }
TenantService { public void validateFname(final String fname) { Validate.validState( TENANT_FNAME_VALIDATOR_PATTERN.matcher(fname).matches(), "Invalid tenant fname '%s' -- fnames must match %s .", fname, TENANT_FNAME_VALIDATOR_REGEX); } }
TenantService { public void validateFname(final String fname) { Validate.validState( TENANT_FNAME_VALIDATOR_PATTERN.matcher(fname).matches(), "Invalid tenant fname '%s' -- fnames must match %s .", fname, TENANT_FNAME_VALIDATOR_REGEX); }  }
TenantService { public void validateFname(final String fname) { Validate.validState( TENANT_FNAME_VALIDATOR_PATTERN.matcher(fname).matches(), "Invalid tenant fname '%s' -- fnames must match %s .", fname, TENANT_FNAME_VALIDATOR_REGEX); }  @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 void validateFname(final String fname) { Validate.validState( TENANT_FNAME_VALIDATOR_PATTERN.matcher(fname).matches(), "Invalid tenant fname '%s' -- fnames must match %s .", fname, TENANT_FNAME_VALIDATOR_REGEX); }  @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);  }