Class MockJwtAccessTokenRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class MockJwtAccessTokenRule
    extends AbstractMockJwtAccessTokenJUnit
    implements org.junit.rules.TestRule

    TestRule to mock JWT access tokens for the JwtHttpSecuritySource.

    This allows generating access tokens for testing the application.

    Author:
    Daniel Sagenschneider
    • Constructor Detail

      • MockJwtAccessTokenRule

        public MockJwtAccessTokenRule()
    • Method Detail

      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base,
                                                       org.junit.runner.Description description)
        Specified by:
        apply in interface org.junit.rules.TestRule