Class TestsHelper

java.lang.Object
org.keycloak.test.TestsHelper

@Deprecated public class TestsHelper extends Object
Deprecated.
This class will be removed in the next major release. Please migrate to FluentTestsHelper.
  • Field Details

    • baseUrl

      public static String baseUrl
      Deprecated.
    • keycloakBaseUrl

      public static String keycloakBaseUrl
      Deprecated.
    • testRealm

      public static String testRealm
      Deprecated.
    • initialAccessCode

      public static String initialAccessCode
      Deprecated.
    • appName

      public static String appName
      Deprecated.
    • initialAccessTokenCount

      public static int initialAccessTokenCount
      Deprecated.
    • clientConfiguration

      protected static String clientConfiguration
      Deprecated.
    • registrationAccessCode

      protected static String registrationAccessCode
      Deprecated.
  • Constructor Details

    • TestsHelper

      public TestsHelper()
      Deprecated.
  • Method Details

    • createClient

      public static String createClient(org.keycloak.representations.idm.ClientRepresentation clientRepresentation)
      Deprecated.
    • createDirectGrantClient

      public static String createDirectGrantClient()
      Deprecated.
    • deleteClient

      public static void deleteClient(String clientId)
      Deprecated.
    • testGetWithAuth

      public static boolean testGetWithAuth(String endpoint, String token) throws IOException
      Deprecated.
      Throws:
      IOException
    • returnsForbidden

      public static boolean returnsForbidden(String endpoint) throws IOException
      Deprecated.
      Throws:
      IOException
    • getToken

      public static String getToken(String username, String password, String realm)
      Deprecated.
    • importTestRealm

      public static boolean importTestRealm(String username, String password, String realmJsonPath) throws IOException
      Deprecated.
      Throws:
      IOException
    • importTestRealm

      public static boolean importTestRealm(String username, String password) throws IOException
      Deprecated.
      Throws:
      IOException
    • deleteRealm

      public static boolean deleteRealm(String username, String password, String realmName) throws IOException
      Deprecated.
      Throws:
      IOException
    • createTestUser

      public static boolean createTestUser(String username, String password, String realmName) throws IOException
      Deprecated.
      Throws:
      IOException
    • getCreatedId

      public static String getCreatedId(jakarta.ws.rs.core.Response response)
      Deprecated.