Class PetData


public final class PetData extends TestDatabase
Utility class for creation of Pet data in the test database, to be used in integration tests.
  • Constructor Details

    • PetData

      public PetData()
  • Method Details

    • findOrCreate

      @NonNull public Pet findOrCreate(@NonNull String name, @Nullable Date birthDate, @NonNull String petType)
    • create

      @NonNull public Pet create(@NonNull String name, @Nullable Date birthDate, @NonNull String petType)
    • create

      @NonNull public Pet create(@NonNull Owner owner, @NonNull String name, @Nullable Date birthDate, @NonNull String petType)