From 9c7442c75b04c748151f1783c38a5951adad7ee2 Mon Sep 17 00:00:00 2001 From: mposolda Date: Thu, 11 Aug 2016 15:49:34 +0200 Subject: [PATCH] Fix ExportImportTest --- .../testsuite/exportimport/ExportImportTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/exportimport/ExportImportTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/exportimport/ExportImportTest.java index e1c3eb6a61..6abaf97456 100755 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/exportimport/ExportImportTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/exportimport/ExportImportTest.java @@ -158,12 +158,12 @@ public class ExportImportTest extends AbstractExportImportTest { realm.components().add(component); - ExportImportConfig.setProvider(SingleFileExportProviderFactory.PROVIDER_ID); - String targetFilePath = getExportImportTestDirectory() + File.separator + "singleFile-realm.json"; - ExportImportConfig.setFile(targetFilePath); + testingClient.testing().setProvider(SingleFileExportProviderFactory.PROVIDER_ID); - ExportImportConfig.setAction(ExportImportConfig.ACTION_EXPORT); - ExportImportConfig.setRealmName("component-realm"); + String targetFilePath = testingClient.testing().getExportImportTestDirectory() + File.separator + "singleFile-realm.json"; + testingClient.testing().setFile(targetFilePath); + testingClient.testing().setAction(ExportImportConfig.ACTION_EXPORT); + testingClient.testing().setRealmName("component-realm"); testingClient.testing().runExport(); @@ -173,7 +173,7 @@ public class ExportImportTest extends AbstractExportImportTest { Assert.assertEquals(3, adminClient.realms().findAll().size()); // Configure import - ExportImportConfig.setAction(ExportImportConfig.ACTION_IMPORT); + testingClient.testing().setAction(ExportImportConfig.ACTION_IMPORT); testingClient.testing().runImport();