Class LoginServiceIntegrationTest
java.lang.Object
jmockit.loginExample.domain.userLogin.LoginServiceIntegrationTest
Equivalent to
LoginServiceNGTest, but with minimal mocking and no redundant tests.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDisallow concurrent logins.voidDisallow logging into revoked account.voidNot revoke second account after two failed attempts on first account.voidSets the account to logged in when password matches.voidSets the account to revoked after three failed login attempts.voidSets the up one account to be found.voidThrow exception if account not found.
-
Constructor Details
-
LoginServiceIntegrationTest
public LoginServiceIntegrationTest()
-
-
Method Details
-
setUpOneAccountToBeFound
@BeforeMethod public void setUpOneAccountToBeFound()Sets the up one account to be found. -
setAccountToLoggedInWhenPasswordMatches
-
setAccountToRevokedAfterThreeFailedLoginAttempts
-
notRevokeSecondAccountAfterTwoFailedAttemptsOnFirstAccount
-
disallowConcurrentLogins
public void disallowConcurrentLogins()Disallow concurrent logins. -
throwExceptionIfAccountNotFound
public void throwExceptionIfAccountNotFound()Throw exception if account not found. -
disallowLoggingIntoRevokedAccount
public void disallowLoggingIntoRevokedAccount()Disallow logging into revoked account.
-