File tree 1 file changed +17
-2
lines changed
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/it/run-fork
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ import java.lang.reflect.Method ;
2
+
1
3
import static org.junit.Assert.assertTrue
2
4
5
+ def boolean isJava13OrLater () {
6
+ for (Method method : String . class. getMethods()) {
7
+ if (method. getName(). equals(" stripIndent" )) {
8
+ return true ;
9
+ }
10
+ }
11
+ return false ;
12
+ }
13
+
3
14
def file = new File (basedir, " build.log" )
4
15
assertTrue file. text. contains(" I haz been run from '$basedir '" )
5
- assertTrue file. text. contains(" JVM argument(s): -Xverify:none -XX:TieredStopAtLevel=1" )
6
-
16
+ if (isJava13OrLater()) {
17
+ assertTrue file. text. contains(" JVM argument(s): -XX:TieredStopAtLevel=1" )
18
+ }
19
+ else {
20
+ assertTrue file. text. contains(" JVM argument(s): -Xverify:none -XX:TieredStopAtLevel=1" )
21
+ }
You can’t perform that action at this time.
0 commit comments