Search in sources :

Example 1 with BroadleafCurrencyImpl

use of org.broadleafcommerce.common.currency.domain.BroadleafCurrencyImpl in project BroadleafCommerce by BroadleafCommerce.

the class BroadleafCurrencyProvider method provideFRCurrency.

@DataProvider(name = "FRCurrency")
public static Object[][] provideFRCurrency() {
    BroadleafCurrency currency = new BroadleafCurrencyImpl();
    currency.setCurrencyCode("EUR");
    currency.setDefaultFlag(true);
    currency.setFriendlyName("EURO Dollar");
    return new Object[][] { { currency } };
}
Also used : BroadleafCurrency(org.broadleafcommerce.common.currency.domain.BroadleafCurrency) BroadleafCurrencyImpl(org.broadleafcommerce.common.currency.domain.BroadleafCurrencyImpl) DataProvider(org.testng.annotations.DataProvider)

Example 2 with BroadleafCurrencyImpl

use of org.broadleafcommerce.common.currency.domain.BroadleafCurrencyImpl in project BroadleafCommerce by BroadleafCommerce.

the class BroadleafCurrencyProvider method provideUSCurrency.

@DataProvider(name = "USCurrency")
public static Object[][] provideUSCurrency() {
    BroadleafCurrency currency = new BroadleafCurrencyImpl();
    currency.setCurrencyCode("USD");
    currency.setDefaultFlag(true);
    currency.setFriendlyName("US Dollar");
    return new Object[][] { { currency } };
}
Also used : BroadleafCurrency(org.broadleafcommerce.common.currency.domain.BroadleafCurrency) BroadleafCurrencyImpl(org.broadleafcommerce.common.currency.domain.BroadleafCurrencyImpl) DataProvider(org.testng.annotations.DataProvider)

Aggregations

BroadleafCurrency (org.broadleafcommerce.common.currency.domain.BroadleafCurrency)2 BroadleafCurrencyImpl (org.broadleafcommerce.common.currency.domain.BroadleafCurrencyImpl)2 DataProvider (org.testng.annotations.DataProvider)2