Class RecommendationServiceFallbackTest


  • @UnitTest
    public class RecommendationServiceFallbackTest
    extends java.lang.Object
    • Constructor Detail

      • RecommendationServiceFallbackTest

        public RecommendationServiceFallbackTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testWithLeadingItemsNotFoundWillReturnEmptyString

        public void testWithLeadingItemsNotFoundWillReturnEmptyString()
        input : leading items not in buffer, but "" is. output : ""
      • testWithOnlyOneLeadingItemInListIsPresentInBuffer

        public void testWithOnlyOneLeadingItemInListIsPresentInBuffer()
        Input : leading items not in buffer except 1 individual product output : individual product
      • testWithSequenceOfLeadingItemsPresentInBuffer

        public void testWithSequenceOfLeadingItemsPresentInBuffer()
      • testGetFallbackSolutionResults_NullCase

        public void testGetFallbackSolutionResults_NullCase()
        Tests the null case, when nothing is found in the buffer