Index
All Classes and Interfaces|All Packages
A
- assertCreated(BaseEntity, String, Object...) - Method in class petclinic.util.TestDatabase
-
Verifies that a given entity was properly inserted into the database, including the generation of its integer identifier.
C
- create() - Method in class petclinic.visits.VisitData
- create(String) - Method in class petclinic.owners.OwnerData
- create(String) - Method in class petclinic.visits.VisitData
- create(String, String...) - Method in class petclinic.vets.VetData
- create(String, Date, String) - Method in class petclinic.pets.PetData
- create(Owner, String, Date, String) - Method in class petclinic.pets.PetData
D
- db - Variable in class petclinic.util.TestDatabase
F
- findOne(String, Object...) - Method in class petclinic.util.TestDatabase
-
Finds one entity of the desired type.
- findOrCreate(String, Date, String) - Method in class petclinic.pets.PetData
O
- OwnerData - Class in petclinic.owners
-
Utility class for creation of
Owner
data in the test database, to be used in integration tests. - OwnerData() - Constructor for class petclinic.owners.OwnerData
P
- petclinic.owners - package petclinic.owners
- petclinic.pets - package petclinic.pets
- petclinic.util - package petclinic.util
- petclinic.vets - package petclinic.vets
- petclinic.visits - package petclinic.visits
- PetData - Class in petclinic.pets
-
Utility class for creation of
Pet
data in the test database, to be used in integration tests. - PetData() - Constructor for class petclinic.pets.PetData
R
- refresh(BaseEntity) - Method in class petclinic.util.TestDatabase
-
Refreshes the persistent state of a given entity from the database, so that a test can verify that persistent state was modified as expected.
S
- SUT - Annotation Interface in petclinic.util
-
Designates a field containing an object to be tested, which gets automatically created before any @Test method as needed; any fields of the object for other dependencies to be injected are also automatically created or resolved.
T
- TestDatabase - Class in petclinic.util
-
Base test utility class for domain-specific "EntityXData" classes, which allow each test to create the required data in the test database.
- TestDatabase() - Constructor for class petclinic.util.TestDatabase
- TestUtil - Annotation Interface in petclinic.util
-
Designates a field containing a test utility object, which will be initialized before any @Test or @Before method is executed.
V
- VetData - Class in petclinic.vets
-
Utility class for creation of
Vet
data in the test database, to be used in integration tests. - VetData() - Constructor for class petclinic.vets.VetData
- VisitData - Class in petclinic.visits
-
Utility class for creation of
Visit
data in the test database, to be used in integration tests. - VisitData() - Constructor for class petclinic.visits.VisitData
All Classes and Interfaces|All Packages