/** * Uses {@link org.junit.Assume#assumeTrue(boolean)} to check that the EAP repository is reachable. If it is not reachable an {@linke org.junit.AssumptionViolatedException} * is thrown causing the test to be conditionally ignored. The purpose of this method is to be called at the beginning of transformers tests against legacy EAP versions. If the * internal EAP repository is not available to the caller, the test is conditionally @Ignored if running with the standard JUnit test runner. This means that no special setup * is needed for being on the VPN or not. */ protected void ignoreThisTestIfEAPRepositoryIsNotReachable() { Assume.assumeTrue(EAPRepositoryReachableUtil.isReachable()); }
/** * Uses {@link org.junit.Assume#assumeTrue(boolean)} to check that the EAP repository is reachable. If it is not reachable an {@linke org.junit.AssumptionViolatedException} * is thrown causing the test to be conditionally ignored. The purpose of this method is to be called at the beginning of transformers tests against legacy EAP versions. If the * internal EAP repository is not available to the caller, the test is conditionally @Ignored if running with the standard JUnit test runner. This means that no special setup * is needed for being on the VPN or not. */ protected void ignoreThisTestIfEAPRepositoryIsNotReachable() { Assume.assumeTrue(EAPRepositoryReachableUtil.isReachable()); } }
/** * Uses {@link org.junit.Assume#assumeTrue(boolean)} to check that the EAP repository is reachable. If it is not reachable an {@linke org.junit.AssumptionViolatedException} * is thrown causing the test to be conditionally ignored. The purpose of this method is to be called at the beginning of transformers tests against legacy EAP versions. If the * internal EAP repository is not available to the caller, the test is conditionally @Ignored if running with the standard JUnit test runner. This means that no special setup * is needed for being on the VPN or not. */ protected void ignoreThisTestIfEAPRepositoryIsNotReachable() { Assume.assumeTrue(EAPRepositoryReachableUtil.isReachable()); }
/** * Uses {@link org.junit.Assume#assumeTrue(boolean)} to check that -Djboss.test.transformers.eap is set AND the EAP repository is reachable. If those two conditions are not true, * an {@link org.junit.internal.AssumptionViolatedException} is thrown causing the test to be conditionally ignored. The purpose of this method is to be called at the beginning of transformers * tests against legacy EAP versions. If the internal EAP repository is not available to the caller, the test is conditionally @Ignored if running with the standard JUnit test runner. * This means that no special setup is needed for being on the VPN or not. The {@code -Djboss.test.transformers.eap} is required to not add unnecessary time to every day builds. * * <p> * Normally you should not have to call this method, tests involving EAP do something similar as part of calling * {@link KernelServicesBuilder#createLegacyKernelServicesBuilder(AdditionalInitialization, org.jboss.as.model.test.ModelTestControllerVersion, ModelVersion)} if the * passed in ModelTestControllerVersion is an EAP version. */ protected void ignoreThisTestIfEAPRepositoryIsNotReachable() { Assume.assumeTrue(EAPRepositoryReachableUtil.isReachable()); } }
/** * Uses {@link org.junit.Assume#assumeTrue(boolean)} to check that -Djboss.test.transformers.eap is set AND the EAP repository is reachable. If those two conditions are not true, * an {@link org.junit.internal.AssumptionViolatedException} is thrown causing the test to be conditionally ignored. The purpose of this method is to be called at the beginning of transformers * tests against legacy EAP versions. If the internal EAP repository is not available to the caller, the test is conditionally @Ignored if running with the standard JUnit test runner. * This means that no special setup is needed for being on the VPN or not. The {@code -Djboss.test.transformers.eap} is required to not add unnecessary time to every day builds. * * <p> * Normally you should not have to call this method, tests involving EAP do something similar as part of calling * {@link KernelServicesBuilder#createLegacyKernelServicesBuilder(AdditionalInitialization, org.jboss.as.model.test.ModelTestControllerVersion, ModelVersion)} if the * passed in ModelTestControllerVersion is an EAP version. */ protected void ignoreThisTestIfEAPRepositoryIsNotReachable() { Assume.assumeTrue(EAPRepositoryReachableUtil.isReachable()); } }
public LegacyKernelServicesInitializer createLegacyKernelServicesBuilder(AdditionalInitialization additionalInit, ModelTestControllerVersion version, ModelVersion modelVersion) { boolean valid = version.hasValidLegacyController(); if (!valid) { valid = System.getProperties().containsKey(TEST_OLD_LEGACY); } Assume.assumeTrue("No legacy controller to test against", valid); //Ignore this test if it is eap if (version.isEap()) { Assume.assumeTrue(EAPRepositoryReachableUtil.isReachable()); } bootOperationBuilder.validateNotAlreadyBuilt(); if (legacyControllerInitializers.containsKey(modelVersion)) { throw new IllegalArgumentException("There is already a legacy controller for " + modelVersion); } if (additionalInit != null) { if (additionalInit.getRunningMode() != RunningMode.ADMIN_ONLY) { throw new IllegalArgumentException("The additional initialization must have a running mode of ADMIN_ONLY, it was " + additionalInit.getRunningMode()); } } LegacyKernelServiceInitializerImpl initializer = new LegacyKernelServiceInitializerImpl(additionalInit, version, modelVersion); legacyControllerInitializers.put(modelVersion, initializer); return initializer; }
public LegacyKernelServicesInitializer createLegacyKernelServicesBuilder(AdditionalInitialization additionalInit, ModelTestControllerVersion version, ModelVersion modelVersion) { boolean valid = version.hasValidLegacyController(); if (!valid) { valid = System.getProperties().containsKey(TEST_OLD_LEGACY); } Assume.assumeTrue("No legacy controller to test against", valid); //Ignore this test if it is eap if (version.isEap()) { Assume.assumeTrue(EAPRepositoryReachableUtil.isReachable()); } bootOperationBuilder.validateNotAlreadyBuilt(); if (legacyControllerInitializers.containsKey(modelVersion)) { throw new IllegalArgumentException("There is already a legacy controller for " + modelVersion); } if (additionalInit != null) { if (additionalInit.getRunningMode() != RunningMode.ADMIN_ONLY) { throw new IllegalArgumentException("The additional initialization must have a running mode of ADMIN_ONLY, it was " + additionalInit.getRunningMode()); } } LegacyKernelServiceInitializerImpl initializer = new LegacyKernelServiceInitializerImpl(additionalInit, version, modelVersion); legacyControllerInitializers.put(modelVersion, initializer); return initializer; }