Skip to content

Commit 44f3db9

Browse files
committed
add ignore to string translate escapes test if version less than 15
1 parent 28db26f commit 44f3db9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dd-java-agent/agent-iast/src/test/groovy/com/datadog/iast/propagation/StringModuleTest.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import datadog.trace.bootstrap.instrumentation.api.AgentSpan
1212
import datadog.trace.bootstrap.instrumentation.api.AgentTracer
1313
import groovy.transform.CompileDynamic
1414
import org.junit.jupiter.api.Assertions
15+
import spock.lang.IgnoreIf
1516

1617
import java.text.SimpleDateFormat
1718

@@ -1414,11 +1415,12 @@ class StringModuleTest extends IastModuleImplTestBase {
14141415
taintFormat(result, taintedObject.getRanges()) == "==>my_input<=="
14151416
}
14161417
1418+
@IgnoreIf({ System.getProperty('java.specification.version').toBigDecimal() < 15 })
14171419
void 'test translate escapes'() {
14181420
given:
14191421
final taintedObjects = ctx.getTaintedObjects()
14201422
def self = addFromTaintFormat(taintedObjects, testString)
1421-
def result = self
1423+
def result = self.translateEscapes()
14221424
14231425
when:
14241426
module.onStringTranslateEscapes(self, result)

0 commit comments

Comments
 (0)