File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed
internal-api/src/test/groovy/datadog/trace/bootstrap/instrumentation/api Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,24 @@ class InferredProxyContextTest extends Specification {
8282 def context = new InferredProxyContext ()
8383
8484 when :
85- if (proxyName) context. setProxyName(" proxy" )
86- if (startTime) context. setStartTime(" 123" )
87- if (domainName) context. setDomainName(" domain" )
88- if (httpMethod) context. setHttpMethod(" GET" )
89- if (path) context. setPath(" /path" )
90- if (stage) context. setStage(" prod" )
85+ if (proxyName) {
86+ context. setProxyName(" proxy" )
87+ }
88+ if (startTime) {
89+ context. setStartTime(" 123" )
90+ }
91+ if (domainName) {
92+ context. setDomainName(" domain" )
93+ }
94+ if (httpMethod) {
95+ context. setHttpMethod(" GET" )
96+ }
97+ if (path) {
98+ context. setPath(" /path" )
99+ }
100+ if (stage) {
101+ context. setStage(" prod" )
102+ }
91103
92104 then :
93105 context. validContext() == expected
You can’t perform that action at this time.
0 commit comments