From fc4e85b5c8ef8a0eb82bdedabb5ddf38cfa68ead Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Thu, 28 Sep 2017 19:07:54 +0200 Subject: [PATCH] [Minor] Removed xml persistence performance tests --- .../runtime_xml/config/PrivilegeConfig.xml | 40 -------- .../src/runtime_xml/config/PrivilegeRoles.xml | 92 ------------------- .../src/runtime_xml/config/PrivilegeUsers.xml | 33 ------- .../config/StrolchConfiguration.xml | 59 ------------ .../performance/PerformanceXmlTest.java | 65 ------------- 5 files changed, 289 deletions(-) delete mode 100644 li.strolch.performancetest/src/runtime_xml/config/PrivilegeConfig.xml delete mode 100644 li.strolch.performancetest/src/runtime_xml/config/PrivilegeRoles.xml delete mode 100644 li.strolch.performancetest/src/runtime_xml/config/PrivilegeUsers.xml delete mode 100644 li.strolch.performancetest/src/runtime_xml/config/StrolchConfiguration.xml delete mode 100644 li.strolch.performancetest/src/test/java/li/strolch/performance/PerformanceXmlTest.java diff --git a/li.strolch.performancetest/src/runtime_xml/config/PrivilegeConfig.xml b/li.strolch.performancetest/src/runtime_xml/config/PrivilegeConfig.xml deleted file mode 100644 index a8965cf39..000000000 --- a/li.strolch.performancetest/src/runtime_xml/config/PrivilegeConfig.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/li.strolch.performancetest/src/runtime_xml/config/PrivilegeRoles.xml b/li.strolch.performancetest/src/runtime_xml/config/PrivilegeRoles.xml deleted file mode 100644 index 72e8c4eb2..000000000 --- a/li.strolch.performancetest/src/runtime_xml/config/PrivilegeRoles.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - li.strolch.runtime.privilege.StrolchSystemAction - li.strolch.runtime.privilege.StrolchSystemActionWithResult - - - - true - - - true - - - true - - - true - - - true - - - true - - - true - - - true - - - true - - - true - - - true - - - true - - - - - - true - - - true - - - - true - - - true - - - true - - - true - - - true - - - true - - - true - - - true - - - true - - - true - - - true - - - true - - - diff --git a/li.strolch.performancetest/src/runtime_xml/config/PrivilegeUsers.xml b/li.strolch.performancetest/src/runtime_xml/config/PrivilegeUsers.xml deleted file mode 100644 index af52f213c..000000000 --- a/li.strolch.performancetest/src/runtime_xml/config/PrivilegeUsers.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - SYSTEM - - agent - - - - Application - Administrator - ENABLED - en_GB - - AppUser - - - - - - - Application - Administrator - ENABLED - en_GB - - AppUser - - - - - - diff --git a/li.strolch.performancetest/src/runtime_xml/config/StrolchConfiguration.xml b/li.strolch.performancetest/src/runtime_xml/config/StrolchConfiguration.xml deleted file mode 100644 index 042c6f921..000000000 --- a/li.strolch.performancetest/src/runtime_xml/config/StrolchConfiguration.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - minimal - - en - true - - - - PrivilegeHandler - li.strolch.runtime.privilege.PrivilegeHandler - li.strolch.runtime.privilege.DefaultStrolchPrivilegeHandler - - PrivilegeConfig.xml - - - - RealmHandler - li.strolch.agent.api.RealmHandler - li.strolch.agent.impl.DefaultRealmHandler - PrivilegeHandler - - - transactional, cached - - TRANSACTIONAL - true - - CACHED - true - - - - PersistenceHandler - li.strolch.persistence.api.PersistenceHandler - li.strolch.persistence.xml.XmlPersistenceHandler - - false - - - - ServiceHandler - li.strolch.service.api.ServiceHandler - li.strolch.service.api.DefaultServiceHandler - RealmHandler - PrivilegeHandler - - false - - - - diff --git a/li.strolch.performancetest/src/test/java/li/strolch/performance/PerformanceXmlTest.java b/li.strolch.performancetest/src/test/java/li/strolch/performance/PerformanceXmlTest.java deleted file mode 100644 index 70645bfb3..000000000 --- a/li.strolch.performancetest/src/test/java/li/strolch/performance/PerformanceXmlTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2015 Robert von Burg - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package li.strolch.performance; - -import java.io.File; - -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Ignore; - -import li.strolch.testbase.runtime.RuntimeMock; -import li.strolch.utils.helper.FileHelper; - -/** - * @author Robert von Burg - */ -@Ignore("We currently aren't building XML Persistence") -public class PerformanceXmlTest extends PerformanceTest { - - public static final String RUNTIME_PATH = "target/runtime_xml_test/"; //$NON-NLS-1$ - public static final String DB_STORE_PATH_DIR = "dbStore"; //$NON-NLS-1$ - public static final String CONFIG_SRC = "src/runtime_xml"; //$NON-NLS-1$ - - protected static RuntimeMock runtimeMock; - - @Override - protected RuntimeMock runtime() { - return runtimeMock; - } - - @BeforeClass - public static void beforeClass() throws Exception { - - File rootPath = new File(RUNTIME_PATH); - File configSrc = new File(CONFIG_SRC); - runtimeMock = new RuntimeMock(); - runtimeMock.mockRuntime(rootPath, configSrc); - new File(rootPath, DB_STORE_PATH_DIR).mkdir(); - runtimeMock.startContainer(); - } - - @AfterClass - public static void afterClass() { - if (runtimeMock != null) - runtimeMock.destroyRuntime(); - - File rootPath = new File(RUNTIME_PATH); - if (rootPath.exists()) { - FileHelper.deleteFile(rootPath, false); - } - } -}