@Test public void testPopulate_and_with_quoteId() { final String testQuoteId = "12345"; quoteData.setQuoteId(testQuoteId); insuranceCart2QuoteListingPopulator.populate(cartData, quoteListingData); Assert.assertEquals(testQuoteId, quoteListingData.getQuoteNumber()); }
@Test public void testPopulate_and_with_no_quoteId() { insuranceCart2QuoteListingPopulator.populate(cartData, quoteListingData); Assert.assertEquals(testFormattedValue, quoteListingData.getQuotePrice()); Assert.assertEquals(testProductName, quoteListingData.getPlanName()); Assert.assertEquals(imageDataList, quoteListingData.getQuoteImages()); Assert.assertEquals(testQuoteFormattedExpiryDate, quoteListingData.getQuoteExpiryDate()); Assert.assertEquals(testCartCode, quoteListingData.getQuoteNumber()); }