Search in sources :

Example 1 with ChallengeQuestionImpl

use of org.broadleafcommerce.profile.core.domain.ChallengeQuestionImpl in project BroadleafCommerce by BroadleafCommerce.

the class RegisterCustomerDataProvider method createCustomer.

@DataProvider(name = "setupCustomerControllerData")
public static Object[][] createCustomer() {
    Customer customer = new CustomerImpl();
    customer.setEmailAddress("testCase@test.com");
    customer.setFirstName("TestFirstName");
    customer.setLastName("TestLastName");
    customer.setUsername("TestCase");
    ChallengeQuestion question = new ChallengeQuestionImpl();
    question.setId(1L);
    customer.setChallengeQuestion(question);
    customer.setChallengeAnswer("Challenge CandidateItemOfferAnswer");
    RegisterCustomerForm registerCustomer = new RegisterCustomerForm();
    registerCustomer.setCustomer(customer);
    registerCustomer.setPassword("TestPassword");
    registerCustomer.setPasswordConfirm("TestPassword");
    return new Object[][] { new Object[] { registerCustomer } };
}
Also used : Customer(org.broadleafcommerce.profile.core.domain.Customer) ChallengeQuestionImpl(org.broadleafcommerce.profile.core.domain.ChallengeQuestionImpl) RegisterCustomerForm(org.broadleafcommerce.profile.web.core.form.RegisterCustomerForm) CustomerImpl(org.broadleafcommerce.profile.core.domain.CustomerImpl) ChallengeQuestion(org.broadleafcommerce.profile.core.domain.ChallengeQuestion) DataProvider(org.testng.annotations.DataProvider)

Aggregations

ChallengeQuestion (org.broadleafcommerce.profile.core.domain.ChallengeQuestion)1 ChallengeQuestionImpl (org.broadleafcommerce.profile.core.domain.ChallengeQuestionImpl)1 Customer (org.broadleafcommerce.profile.core.domain.Customer)1 CustomerImpl (org.broadleafcommerce.profile.core.domain.CustomerImpl)1 RegisterCustomerForm (org.broadleafcommerce.profile.web.core.form.RegisterCustomerForm)1 DataProvider (org.testng.annotations.DataProvider)1