Class LoginServiceIntegrationTest

java.lang.Object
jmockit.loginExample.domain.userLogin.LoginServiceIntegrationTest

public final class LoginServiceIntegrationTest extends Object
Equivalent to LoginServiceNGTest, but with minimal mocking and no redundant tests.
  • Constructor Details

    • LoginServiceIntegrationTest

      public LoginServiceIntegrationTest()
  • Method Details

    • setUpOneAccountToBeFound

      @BeforeMethod public void setUpOneAccountToBeFound()
      Sets the up one account to be found.
    • setAccountToLoggedInWhenPasswordMatches

      public void setAccountToLoggedInWhenPasswordMatches() throws Exception
      Sets the account to logged in when password matches.
      Throws:
      Exception - the exception
    • setAccountToRevokedAfterThreeFailedLoginAttempts

      public void setAccountToRevokedAfterThreeFailedLoginAttempts() throws Exception
      Sets the account to revoked after three failed login attempts.
      Throws:
      Exception - the exception
    • notRevokeSecondAccountAfterTwoFailedAttemptsOnFirstAccount

      public void notRevokeSecondAccountAfterTwoFailedAttemptsOnFirstAccount() throws Exception
      Not revoke second account after two failed attempts on first account.
      Throws:
      Exception - the exception
    • 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.