|
2 | 2 |
|
3 | 3 | import org.junit.jupiter.api.RepeatedTest;
|
4 | 4 | import org.junit.jupiter.api.Test;
|
5 |
| -import org.junit.jupiter.api.condition.DisabledForJreRange; |
6 |
| -import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; |
7 |
| -import org.junit.jupiter.api.condition.DisabledIfSystemProperty; |
8 |
| -import org.junit.jupiter.api.condition.DisabledOnJre; |
9 |
| -import org.junit.jupiter.api.condition.DisabledOnOs; |
10 |
| -import org.junit.jupiter.api.condition.EnabledForJreRange; |
11 |
| -import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; |
12 |
| -import org.junit.jupiter.api.condition.EnabledIfSystemProperty; |
13 |
| -import org.junit.jupiter.api.condition.EnabledOnJre; |
14 |
| -import org.junit.jupiter.api.condition.EnabledOnOs; |
15 |
| -import org.junit.jupiter.api.condition.JRE; |
16 |
| -import org.junit.jupiter.api.condition.OS; |
| 5 | +import org.junit.jupiter.api.condition.*; |
17 | 6 | import org.slf4j.Logger;
|
18 | 7 | import org.slf4j.LoggerFactory;
|
19 | 8 |
|
@@ -44,6 +33,18 @@ public void shouldOnlyRunOnJava10And11() {
|
44 | 33 | LOGGER.debug("runs with java 10 and 11");
|
45 | 34 | }
|
46 | 35 |
|
| 36 | + @Test |
| 37 | + @EnabledInNativeImage |
| 38 | + void shouldOnlyRunWithinNativeImage() { |
| 39 | + LOGGER.debug("Should run only within native images."); |
| 40 | + } |
| 41 | + |
| 42 | + @Test |
| 43 | + @DisabledInNativeImage |
| 44 | + void shouldNeverRunWithinNativeImage() { |
| 45 | + LOGGER.debug("Shouldn't run within native images."); |
| 46 | + } |
| 47 | + |
47 | 48 | @Test
|
48 | 49 | @EnabledForJreRange(min = JRE.JAVA_8, max = JRE.JAVA_13)
|
49 | 50 | public void shouldOnlyRunOnJava8UntilJava13() {
|
|
0 commit comments