@@ -0,0 +1,2509 @@
+/*%0A * JBoss, Home of Professional Open Source.%0A *%0A * Copyright 2017 Red Hat, Inc., and individual contributors%0A * as indicated by the @author tags.%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 */%0A%0Apackage org.jboss.as.test.shared.assume;%0A%0Aimport java.security.AccessController;%0Aimport java.security.PrivilegedAction;%0Aimport java.util.function.Supplier;%0A%0Aimport org.junit.Assume;%0A%0A/**%0A * Helper methods which help to skip tests for feature which is not yet fully working. Put the call of the method directly into%0A * the failing test method, or if you want to skip whole test class, then put the method call into method annotated with%0A * %7B@link org.junit.BeforeClass%7D.%0A *%0A * @author Josef Cacek%0A * @deprecated this utility should not be used as tests should be fixed to work with Elytron, see%0A *  %3Ca href=%22https://issues.jboss.org/browse/WFCORE-2775%22%3Ehttps://issues.jboss.org/browse/WFCORE-2775%3C/a%3E%0A */%0A@Deprecated%0Apublic class AssumeTestGroupUtil %7B%0A%0A    public static final Supplier%3CBoolean%3E CONDITION_SKIP_ELYTRON_PROFILE = () -%3E (System.getProperty(%22elytron%22) == null%0A            %7C%7C Boolean.getBoolean(%22wildfly.tmp.enable.elytron.profile.tests%22));%0A%0A    /**%0A     * Assume for test failures when running with Elytron profile enabled. It skips test in case the %7B@code '-Delytron'%7D Maven%0A     * argument is used (for Elytron profile activation) and system property %7B@code wildfly.tmp.enable.elytron.profile.tests%7D%0A     * hasn't value %7B@code 'true'%7D.%0A     */%0A    public static void assumeElytronProfileTestsEnabled() %7B%0A        assumeCondition(%22Tests failing in Elytron profile are disabled%22, CONDITION_SKIP_ELYTRON_PROFILE);%0A    %7D%0A%0A    private static void assumeCondition(final String message, final Supplier%3CBoolean%3E assumeTrueCondition) %7B%0A        AccessController.doPrivileged(new PrivilegedAction%3CVoid%3E() %7B%0A            @Override%0A            public Void run() %7B%0A                Assume.assumeTrue(message, assumeTrueCondition.get());%0A                return null;%0A            %7D%0A        %7D);%0A    %7D%0A%0A%7D%0A

Copy AssumeTestGroupUtil from WildFly. The one in WildFly will be deprecated and removed.