java.lang.Object
org.apache.juneau.petstore.console.dev.flavors.FlavorPets

public final class FlavorPets extends Object
The pet rows every rendering flavor shows: the first 10 pets by id, with display-ready strings.

Formatting happens here, once, so the three engines differ only in markup and the flavor tests can compare their cells exactly.

Example:

List<Map<String,String>> rows = FlavorPets.rows(store); rows.get(0).get("name"); // "Mr. Frisky"

  • Field Details

  • Method Details

    • rows

      public static List<Map<String,String>> rows(PetStore store)
      Returns the display rows.
      Parameters:
      store - The store. Must not be null.
      Returns:
      Rows with keys name, species, price (two decimals) and status.