Food that reminds you your home
Wish List 0

Rava Laddu

₹275.00

  • Product Code: Rava Laddu
  • Availability: In Stock

Available Options

Buy Homemade Ravva Laddu Online

Premium Quality Homemade Rava Laddu is a traditional Indian sweet made with rava, pure ghee, sugar and other best ingredients. It is aromatic, tastes delicious with a slight crunch, and is commonly served during festivals and celebrations. No Preservatives or Added Colors.


      @Step

public void validateRedemptionTypeCallOrMaturity() throws Throwable {

    Map<String, String> apiMap = earlyRedemptionDetails.stream()

        .filter(e -> e.containsKey("symbol") && e.containsKey("redemptionType"))

        .collect(Collectors.toMap(

            e -> e.get("symbol"),

            e -> e.get("redemptionType")));


    for (Map<String, String> dbEntry : finalResults) {

        String cuspN = dbEntry.get("CUSP_N");

        String refTyC = dbEntry.get("REF_TY_C");

        LocalDate refDate = parseDate(dbEntry.get("REF_D"));

        LocalDate mtyDate = parseDate(dbEntry.get("MTY_D"));

        LocalDate redEffDate = parseDate(dbEntry.get("RED_EFF_D"));


        String expectedType = getExpectedRedemptionType(refTyC, refDate, redEffDate, mtyDate);

        String actualType = apiMap.get(cuspN);


        System.out.println("\nCUSP: " + cuspN + " | Expected: " + expectedType + " | Actual: " + actualType);


        // Convert nulls to empty and sanitize

        String cleanExpected = (expectedType == null ? "" : expectedType)

                .replaceAll("[\\p{C}\\p{Z}\\p{M}\\p{Cf}\\p{Zs}]", "")

                .trim().toUpperCase();

        String cleanActual = (actualType == null ? "" : actualType)

                .replaceAll("[\\p{C}\\p{Z}\\p{M}\\p{Cf}\\p{Zs}]", "")

                .trim().toUpperCase();


        // Debug output for character-by-character difference

        if (!cleanExpected.equals(cleanActual)) {

            System.out.println(">>> Expected chars:");

            for (char ch : cleanExpected.toCharArray()) {

                System.out.println("'" + ch + "' (" + (int) ch + ")");

            }

            System.out.println(">>> Actual chars:");

            for (char ch : cleanActual.toCharArray()) {

                System.out.println("'" + ch + "' (" + (int) ch + ")");

            }

        }


        Assert.assertEquals(cleanActual, cleanExpected, "RedemptionType mismatch at cusp: " + cuspN);


Write a review

Please login or register to review