@@ -2,6 +2,7 @@ package smoketest
2
2
3
3
import datadog.smoketest.AbstractIastServerSmokeTest
4
4
import datadog.trace.api.Platform
5
+ import datadog.trace.api.config.IastConfig
5
6
import okhttp3.Request
6
7
import spock.lang.IgnoreIf
7
8
@@ -18,14 +19,14 @@ class ResteasySmokeTest extends AbstractIastServerSmokeTest {
18
19
command. add(javaPath())
19
20
command. addAll(defaultJavaProperties)
20
21
command. addAll([
21
- withSystemProperty(datadog.trace.api.config. IastConfig. IAST_ENABLED , true ),
22
- withSystemProperty(datadog.trace.api.config. IastConfig. IAST_DETECTION_MODE , ' FULL' ),
23
- withSystemProperty(datadog.trace.api.config. IastConfig. IAST_DEBUG_ENABLED , true )
22
+ withSystemProperty(IastConfig . IAST_ENABLED , true ),
23
+ withSystemProperty(IastConfig . IAST_DETECTION_MODE , ' FULL' ),
24
+ withSystemProperty(IastConfig . IAST_DEBUG_ENABLED , true )
24
25
])
25
26
if (Platform . isJavaVersionAtLeast(17 )) {
26
- command. addAll(( String []) [" --add-opens" , " java.base/java.lang=ALL-UNNAMED" ])
27
+ command. addAll([" --add-opens" , " java.base/java.lang=ALL-UNNAMED" ])
27
28
}
28
- command. addAll(( String []) [ " -jar" , jarPath, httpPort])
29
+ command. addAll([ " -jar" , jarPath, Integer . toString( httpPort) ])
29
30
ProcessBuilder processBuilder = new ProcessBuilder (command)
30
31
processBuilder. directory(new File (buildDirectory))
31
32
}
0 commit comments