Class NullPromotion

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable

    public class NullPromotion
    extends OrderPromotion
    Test to ensure that promotions can be written in customer package.
    See Also:
    Serialized Form
    • Constructor Detail

      • NullPromotion

        public NullPromotion()
    • Method Detail

      • getResultDescription

        public java.lang.String getResultDescription​(SessionContext ctx,
                                                     PromotionResult result,
                                                     java.util.Locale locale)
        Description copied from class: AbstractPromotion
        Get a localized user presentable description for the result of this promotion.
        Specified by:
        getResultDescription in class AbstractPromotion
        Parameters:
        ctx - The context
        result - The promotion result to be described
        locale - The locale to use to generate the message
        Returns:
        a string description