@@ -0,0 +1,2356 @@
+/*%0A * Copyright (C) 2015 Hamburg Sud and the contributors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.aludratest.testing;%0A%0Aimport org.aludratest.testcase.AludraTestCase;%0Aimport org.databene.commons.IOUtil;%0Aimport org.junit.Before;%0Aimport org.junit.internal.AssumptionViolatedException;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A/** Parent class for test cases that shall only be performed when running on a system with good performance characteristics. This%0A * is used to disable tests on a CI environment like Jenkins, where execution times can vary heavily and where no Selenium GUI%0A * server is available. Execution is enabled on a specific system by putting a file 'performLocalTests' into the classpath OR by%0A * setting a VM variable 'performLocalTests' to true.%0A * @author Volker Bergmann */%0Apublic abstract class LocalTestCase extends AludraTestCase %7B%0A%0A    protected final Logger logger = LoggerFactory.getLogger(getClass());%0A%0A    private static final String LOCAL_TESTS_ACTIVATION_FILE = %22performLocalTests%22;%0A%0A    private static final String LOCAL_TESTS_ACTIVATION_PROPERTY = LOCAL_TESTS_ACTIVATION_FILE;%0A%0A    private boolean performLocalTests = %22true%22.equals(System.getProperty(LOCAL_TESTS_ACTIVATION_PROPERTY))%0A            %7C%7C IOUtil.isURIAvailable(LOCAL_TESTS_ACTIVATION_FILE);%0A%0A    /** Reads the configuration settings and decides whether to execute the class' tests */%0A    @Before%0A    public void assumeLocal() %7B%0A        if (!shallPerformLocalTests()) %7B%0A            String message = %22Skipping local tests of %22 + getClass();%0A            logger.info(message);%0A            throw new AssumptionViolatedException(message);%0A        %7D%0A    %7D%0A%0A    /** @return true if local tests shall be executed, otherwise false */%0A    protected boolean shallPerformLocalTests() %7B%0A        return performLocalTests;%0A    %7D%0A%0A%7D%0A

Add "LocalTestCase" utility base test class