Class ConfigPricingImplTest.DummyPriceDataFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PriceData create​(PriceDataType priceType, java.math.BigDecimal value, CurrencyModel currency)
      Creates a PriceData object with a formatted currency string based on the price type and currency.
      PriceData create​(PriceDataType priceType, java.math.BigDecimal value, java.lang.String currencyIso)
      Creates a PriceData object with a formatted currency string based on the price type and currency ISO code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DummyPriceDataFactory

        public DummyPriceDataFactory()
    • Method Detail

      • create

        public PriceData create​(PriceDataType priceType,
                                java.math.BigDecimal value,
                                java.lang.String currencyIso)
        Description copied from interface: PriceDataFactory
        Creates a PriceData object with a formatted currency string based on the price type and currency ISO code.
        Specified by:
        create in interface PriceDataFactory
        Parameters:
        priceType - The price type
        value - The price amount
        currencyIso - The currency ISO code
        Returns:
        the price data
      • create

        public PriceData create​(PriceDataType priceType,
                                java.math.BigDecimal value,
                                CurrencyModel currency)
        Description copied from interface: PriceDataFactory
        Creates a PriceData object with a formatted currency string based on the price type and currency.
        Specified by:
        create in interface PriceDataFactory
        Parameters:
        priceType - The price type
        value - The price amount
        currency - The currency
        Returns:
        the price data