Class AuthClassExtension

java.lang.Object
org.sdase.commons.server.auth.testing.AbstractAuth
org.sdase.commons.server.auth.testing.AuthClassExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.Extension

public class AuthClassExtension extends AbstractAuth implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
  • Field Details

  • Method Details

    • builder

      public static AuthClassExtension.AuthExtensionBuilder builder()
      Returns:
      a builder that guides along required fields to fluently create a new AuthClassExtension
    • auth

      public AuthBuilder auth()
      Returns:
      a builder to configure JWT content and create a signed token that will be accepted by the application
    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
    • afterAll

      public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback