@Test public void validateCustomerSearchStepEmptySearchStringShouldFail() { formBean.validateCustomerSearchStep(validationContext); MessageContext messageContext = validationContext.getMessageContext(); Message[] messages = messageContext.getAllMessages(); Assert.assertEquals(1, messages.length); Message message = messages[0]; Assert.assertEquals("searchString", message.getSource()); verifyErrorMessage(NotEmpty.class, message); }
public void validateCustomerSearchStep(ValidationContext context) { MessageContext messages = context.getMessageContext(); validator.validate(this, messages, CustomerSearchStep.class); }
CreateSavingsAccountFormBean implements Serializable { public void validateCustomerSearchStep(ValidationContext context) { MessageContext messages = context.getMessageContext(); validator.validate(this, messages, CustomerSearchStep.class); } }
CreateSavingsAccountFormBean implements Serializable { public void validateCustomerSearchStep(ValidationContext context) { MessageContext messages = context.getMessageContext(); validator.validate(this, messages, CustomerSearchStep.class); }  }
CreateSavingsAccountFormBean implements Serializable { public void validateCustomerSearchStep(ValidationContext context) { MessageContext messages = context.getMessageContext(); validator.validate(this, messages, CustomerSearchStep.class); }  void setValidator(MifosBeanValidator validator); void setQuestionnaireServiceFascade(QuestionnaireServiceFacade questionnaireServiceFacade); @Autowired void setConfigurationServiceFacade(ConfigurationServiceFacade configurationServiceFacade); void setCustomer(CustomerDto customer); CustomerDto getCustomer(); void setSearchString(String searchString); String getSearchString(); void setProduct(SavingsProductReferenceDto product); SavingsProductReferenceDto getProduct(); void setProductOfferings(List<PrdOfferingDto> productOfferings); List<PrdOfferingDto> getProductOfferings(); void setProductOfferingOptions(
            Map<String, String> productOfferingOptions); Map<String, String> getProductOfferingOptions(); void validateCustomerSearchStep(ValidationContext context); void validateSelectCustomerStep(ValidationContext context); void validateSelectProductOfferingStep(ValidationContext context); void validateEnterAccountDetailsStep(ValidationContext context); void validateEditAccountDetailsStep(ValidationContext context); void validateAnswerQuestionGroupStep(ValidationContext context); void validateEditQuestionGroupStep(ValidationContext context); void setProductId(Integer productId); Integer getProductId(); void setSavingsTypes(Map<String, String> savingsTypes); Map<String, String> getSavingsTypes(); void setRecurrenceTypes(Map<String, String> recurrenceTypes); Map<String, String> getRecurrenceTypes(); void setRecurrenceFrequencies(
            Map<String, String> recurrenceFrequencies); Map<String, String> getRecurrenceFrequencies(); void setMandatoryDepositAmount(String mandatoryDepositAmount); String getMandatoryDepositAmount(); void setQuestionGroups(List<QuestionGroupDetail> questionGroups); List<QuestionGroupDetail> getQuestionGroups(); }
CreateSavingsAccountFormBean implements Serializable { public void validateCustomerSearchStep(ValidationContext context) { MessageContext messages = context.getMessageContext(); validator.validate(this, messages, CustomerSearchStep.class); }  void setValidator(MifosBeanValidator validator); void setQuestionnaireServiceFascade(QuestionnaireServiceFacade questionnaireServiceFacade); @Autowired void setConfigurationServiceFacade(ConfigurationServiceFacade configurationServiceFacade); void setCustomer(CustomerDto customer); CustomerDto getCustomer(); void setSearchString(String searchString); String getSearchString(); void setProduct(SavingsProductReferenceDto product); SavingsProductReferenceDto getProduct(); void setProductOfferings(List<PrdOfferingDto> productOfferings); List<PrdOfferingDto> getProductOfferings(); void setProductOfferingOptions(
            Map<String, String> productOfferingOptions); Map<String, String> getProductOfferingOptions(); void validateCustomerSearchStep(ValidationContext context); void validateSelectCustomerStep(ValidationContext context); void validateSelectProductOfferingStep(ValidationContext context); void validateEnterAccountDetailsStep(ValidationContext context); void validateEditAccountDetailsStep(ValidationContext context); void validateAnswerQuestionGroupStep(ValidationContext context); void validateEditQuestionGroupStep(ValidationContext context); void setProductId(Integer productId); Integer getProductId(); void setSavingsTypes(Map<String, String> savingsTypes); Map<String, String> getSavingsTypes(); void setRecurrenceTypes(Map<String, String> recurrenceTypes); Map<String, String> getRecurrenceTypes(); void setRecurrenceFrequencies(
            Map<String, String> recurrenceFrequencies); Map<String, String> getRecurrenceFrequencies(); void setMandatoryDepositAmount(String mandatoryDepositAmount); String getMandatoryDepositAmount(); void setQuestionGroups(List<QuestionGroupDetail> questionGroups); List<QuestionGroupDetail> getQuestionGroups();  }