Search in sources :

Example 1 with CustomerPhoneImpl

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

the class CustomerPhoneDataProvider method createCustomerPhone.

@DataProvider(name = "setupCustomerPhone")
public static Object[][] createCustomerPhone() {
    CustomerPhone cp1 = new CustomerPhoneImpl();
    Phone phone1 = new PhoneImpl();
    phone1.setPhoneNumber("111-111-1111");
    cp1.setPhone(phone1);
    cp1.setPhoneName("phone1");
    CustomerPhone cp2 = new CustomerPhoneImpl();
    Phone phone2 = new PhoneImpl();
    phone1.setPhoneNumber("222-222-2222");
    cp2.setPhone(phone2);
    cp2.setPhoneName("phone2");
    return new Object[][] { new Object[] { cp1 }, new Object[] { cp2 } };
}
Also used : CustomerPhone(org.broadleafcommerce.profile.core.domain.CustomerPhone) Phone(org.broadleafcommerce.profile.core.domain.Phone) CustomerPhone(org.broadleafcommerce.profile.core.domain.CustomerPhone) CustomerPhoneImpl(org.broadleafcommerce.profile.core.domain.CustomerPhoneImpl) CustomerPhoneImpl(org.broadleafcommerce.profile.core.domain.CustomerPhoneImpl) PhoneImpl(org.broadleafcommerce.profile.core.domain.PhoneImpl) DataProvider(org.testng.annotations.DataProvider)

Aggregations

CustomerPhone (org.broadleafcommerce.profile.core.domain.CustomerPhone)1 CustomerPhoneImpl (org.broadleafcommerce.profile.core.domain.CustomerPhoneImpl)1 Phone (org.broadleafcommerce.profile.core.domain.Phone)1 PhoneImpl (org.broadleafcommerce.profile.core.domain.PhoneImpl)1 DataProvider (org.testng.annotations.DataProvider)1