diff --git a/tests/base/src/test/java/org/keycloak/test/admin/client/ClientDescriptionConverterTest.java b/tests/base/src/test/java/org/keycloak/test/admin/client/ClientDescriptionConverterTest.java index 98596906efa3..d6e21b3f28ba 100644 --- a/tests/base/src/test/java/org/keycloak/test/admin/client/ClientDescriptionConverterTest.java +++ b/tests/base/src/test/java/org/keycloak/test/admin/client/ClientDescriptionConverterTest.java @@ -15,29 +15,34 @@ * the License. */ -package org.keycloak.testsuite.admin.client; - -import org.keycloak.testsuite.AbstractAuthTest; +package org.keycloak.test.admin.client; import java.io.IOException; import java.io.InputStream; import java.nio.charset.StandardCharsets; import org.apache.commons.io.IOUtils; -import org.junit.Test; +import org.junit.jupiter.api.Test; +import org.keycloak.test.framework.annotations.InjectRealm; +import org.keycloak.test.framework.annotations.KeycloakIntegrationTest; +import org.keycloak.test.framework.realm.ManagedRealm; /** * * @author hmlnarik */ -public class ClientDescriptionConverterTest extends AbstractAuthTest { +@KeycloakIntegrationTest +public class ClientDescriptionConverterTest { + + @InjectRealm + ManagedRealm realm; // https://issues.jboss.org/browse/KEYCLOAK-4040 @Test public void testOrganizationDetailsMetadata() throws IOException { try (InputStream is = ClientDescriptionConverterTest.class.getResourceAsStream("KEYCLOAK-4040-sharefile-metadata.xml")) { String data = IOUtils.toString(is, StandardCharsets.UTF_8); - testRealmResource().convertClientDescription(data); + realm.admin().convertClientDescription(data); } } } diff --git a/testsuite/integration-arquillian/tests/base/src/test/resources/org/keycloak/testsuite/admin/client/KEYCLOAK-4040-sharefile-metadata.xml b/tests/base/src/test/resources/org/keycloak/test/admin/client/KEYCLOAK-4040-sharefile-metadata.xml similarity index 100% rename from testsuite/integration-arquillian/tests/base/src/test/resources/org/keycloak/testsuite/admin/client/KEYCLOAK-4040-sharefile-metadata.xml rename to tests/base/src/test/resources/org/keycloak/test/admin/client/KEYCLOAK-4040-sharefile-metadata.xml