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
- disallowConcurrentLogins() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceIntegrationTest
-
Disallow concurrent logins.
- disallowConcurrentLogins() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceNGTest
-
Disallow concurrent logins.
- disallowLoggingIntoRevokedAccount() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceIntegrationTest
-
Disallow logging into revoked account.
- disallowLoggingIntoRevokedAccount() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceNGTest
-
Disallow logging into revoked account.
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
J
- java8testing - package java8testing
- jmockit.loginExample.domain.userLogin - package jmockit.loginExample.domain.userLogin
L
- LoginServiceIntegrationTest - Class in jmockit.loginExample.domain.userLogin
-
Equivalent to
LoginServiceNGTest
, but with minimal mocking and no redundant tests. - LoginServiceIntegrationTest() - Constructor for class jmockit.loginExample.domain.userLogin.LoginServiceIntegrationTest
- LoginServiceNGTest - Class in jmockit.loginExample.domain.userLogin
-
A small TestNG test suite for a single class (
LoginService
), based on this article. - LoginServiceNGTest() - Constructor for class jmockit.loginExample.domain.userLogin.LoginServiceNGTest
M
- MyBusinessServiceTest - Class in tutorial.domain
-
The Class MyBusinessServiceTest.
- MyBusinessServiceTest() - Constructor for class tutorial.domain.MyBusinessServiceTest
N
- notRevokeSecondAccountAfterTwoFailedAttemptsOnFirstAccount() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceIntegrationTest
-
Not revoke second account after two failed attempts on first account.
- notRevokeSecondAccountAfterTwoFailedAttemptsOnFirstAccount() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceNGTest
-
Not revoke second account after two failed attempts on first account.
- notSetAccountLoggedInIfPasswordDoesNotMatch() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceNGTest
-
This test is also redundant, as it exercises the same path as the previous one.
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.
- resetBackToInitialStateAfterSuccessfulLogin() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceNGTest
-
Reset back to initial state after successful login.
S
- setAccountToLoggedInWhenPasswordMatches() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceIntegrationTest
-
Sets the account to logged in when password matches.
- setAccountToLoggedInWhenPasswordMatches() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceNGTest
-
This test is redundant, as it exercises the same path as the last test.
- setAccountToRevokedAfterThreeFailedLoginAttempts() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceIntegrationTest
-
Sets the account to revoked after three failed login attempts.
- setAccountToRevokedAfterThreeFailedLoginAttempts() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceNGTest
-
Sets the account to revoked after three failed login attempts.
- setUpOneAccountToBeFound() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceIntegrationTest
-
Sets the up one account to be found.
- 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.
- TestUtils - Class in java8testing
-
The Class TestUtils.
- TestUtils() - Constructor for class java8testing.TestUtils
- throwExceptionIfAccountNotFound() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceIntegrationTest
-
Throw exception if account not found.
- throwExceptionIfAccountNotFound() - Method in class jmockit.loginExample.domain.userLogin.LoginServiceNGTest
-
Throw exception if account not found.
- tutorial.domain - package tutorial.domain
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