public abstract class CommonSetupBaseTest extends TestNGSiteIntegrationSetup
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected org.broadleafcommerce.profile.core.service.CountryService |
countryService |
protected org.broadleafcommerce.profile.core.service.CustomerAddressService |
customerAddressService |
protected org.broadleafcommerce.profile.core.service.CustomerService |
customerService |
protected org.broadleafcommerce.common.i18n.service.ISOService |
isoService |
protected org.broadleafcommerce.core.order.service.OrderService |
orderService |
protected org.broadleafcommerce.core.pricing.service.ShippingRateService |
shippingRateService |
protected org.broadleafcommerce.profile.core.service.StateService |
stateService |
| Constructor and Description |
|---|
CommonSetupBaseTest() |
| Modifier and Type | Method and Description |
|---|---|
ProductBundle |
addProductBundle() |
Product |
addTestProduct(String productName,
String categoryName) |
Product |
addTestProduct(String productName,
String categoryName,
boolean active) |
void |
createCountry() |
org.broadleafcommerce.profile.core.domain.Customer |
createCustomer() |
org.broadleafcommerce.profile.core.domain.CustomerAddress |
createCustomerWithAddress(org.broadleafcommerce.profile.core.domain.CustomerAddress customerAddress)
Creates a country, state, and customer with the supplied customerAddress
|
org.broadleafcommerce.profile.core.domain.Customer |
createCustomerWithAddresses()
Creates a country, state, and customer with some CustomerAddresses
|
org.broadleafcommerce.profile.core.domain.Customer |
createCustomerWithBasicOrderAndAddresses()
Create a state, country, and customer with a basic order and some addresses
|
void |
createShippingRates() |
void |
createState() |
org.broadleafcommerce.profile.core.domain.CustomerAddress |
saveCustomerAddress(org.broadleafcommerce.profile.core.domain.CustomerAddress customerAddress)
Saves a customerAddress with state KY and country US.
|
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstanceprotected org.broadleafcommerce.common.i18n.service.ISOService isoService
protected org.broadleafcommerce.profile.core.service.CountryService countryService
protected org.broadleafcommerce.profile.core.service.StateService stateService
protected org.broadleafcommerce.profile.core.service.CustomerService customerService
protected org.broadleafcommerce.profile.core.service.CustomerAddressService customerAddressService
protected CatalogService catalogService
protected org.broadleafcommerce.core.order.service.OrderService orderService
protected org.broadleafcommerce.core.pricing.service.ShippingRateService shippingRateService
public void createCountry()
public void createState()
public org.broadleafcommerce.profile.core.domain.Customer createCustomer()
public org.broadleafcommerce.profile.core.domain.Customer createCustomerWithAddresses()
public org.broadleafcommerce.profile.core.domain.CustomerAddress createCustomerWithAddress(org.broadleafcommerce.profile.core.domain.CustomerAddress customerAddress)
customerAddress - public org.broadleafcommerce.profile.core.domain.CustomerAddress saveCustomerAddress(org.broadleafcommerce.profile.core.domain.CustomerAddress customerAddress)
customerAddress - public org.broadleafcommerce.profile.core.domain.Customer createCustomerWithBasicOrderAndAddresses()
public Product addTestProduct(String productName, String categoryName, boolean active)
public ProductBundle addProductBundle()
public void createShippingRates()
Copyright © 2018. All rights reserved.