|
| 1 | +// Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | +// Licensed under the MIT License. |
| 3 | + |
| 4 | +package com.microsoft.applicationinsights.smoketest; |
| 5 | + |
| 6 | +import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.TOMCAT_8_JAVA_17; |
| 7 | +import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.TOMCAT_8_JAVA_17_OPENJ9; |
| 8 | +import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.WILDFLY_13_JAVA_8; |
| 9 | +import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.WILDFLY_13_JAVA_8_OPENJ9; |
| 10 | + |
| 11 | +/** |
| 12 | + * Container for additional environment variants of {@link CoreAndFilter3xUsingOld3xAgentTest}. |
| 13 | + * |
| 14 | + * <p>This class is split out so build/CI can run the "core" environment matrix from {@link |
| 15 | + * CoreAndFilter3xUsingOld3xAgentTest} (e.g. via Gradle {@code --tests |
| 16 | + * "*CoreAndFilter3xUsingOld3xAgentTest*"}) independently from these extra environments. This keeps |
| 17 | + * the default job/runtime smaller while still allowing coverage for Tomcat Java 17 and WildFly Java |
| 18 | + * 8 when desired. |
| 19 | + * |
| 20 | + * <p>The outer class intentionally contains no tests; only the nested classes are executed. |
| 21 | + */ |
| 22 | +public class CoreAndFilter3xUsingOld3xAgentSplitTest { |
| 23 | + |
| 24 | + @Environment(TOMCAT_8_JAVA_17) |
| 25 | + static class Tomcat8Java17Test extends CoreAndFilter3xUsingOld3xAgentTest {} |
| 26 | + |
| 27 | + @Environment(TOMCAT_8_JAVA_17_OPENJ9) |
| 28 | + static class Tomcat8Java17OpenJ9Test extends CoreAndFilter3xUsingOld3xAgentTest {} |
| 29 | + |
| 30 | + // note: old 3.x agents don't support Java 19 |
| 31 | + |
| 32 | + @Environment(WILDFLY_13_JAVA_8) |
| 33 | + static class Wildfly13Java8Test extends CoreAndFilter3xUsingOld3xAgentTest {} |
| 34 | + |
| 35 | + @Environment(WILDFLY_13_JAVA_8_OPENJ9) |
| 36 | + static class Wildfly13Java8OpenJ9Test extends CoreAndFilter3xUsingOld3xAgentTest {} |
| 37 | +} |
0 commit comments