Fix a couple tests using the wrong arguments
MODIFY
dd-java-agent/agent-bootstrap/src/test/groovy/datadog/trace/bootstrap/DatadogClassLoaderTest.groovy
dd-java-agent/agent-bootstrap/src/test/groovy/datadog/trace/bootstrap/DatadogClassLoaderTest.groovy
@@ -13,7 +13,10 @@ class DatadogClassLoaderTest extends Specification {
def className1 = 'some/class/Name1'
def className2 = 'some/class/Name2'
final URL loc = getClass().getProtectionDomain().getCodeSource().getLocation()
- final DatadogClassLoader ddLoader = new DatadogClassLoader(loc, null, null)
+ final DatadogClassLoader ddLoader = new DatadogClassLoader(loc,
+ null,
+ new DatadogClassLoader.BootstrapClassLoaderProxy(),
+ null)
final Phaser threadHoldLockPhase = new Phaser(2)
final Phaser acquireLockFromMainThreadPhase = new Phaser(2)

MODIFY
dd-java-agent/agent-tooling/src/test/groovy/datadog/trace/agent/test/ClassLoaderMatcherTest.groovy
dd-java-agent/agent-tooling/src/test/groovy/datadog/trace/agent/test/ClassLoaderMatcherTest.groovy
@@ -16,7 +16,7 @@ class ClassLoaderMatcherTest extends DDSpecification {
def "skips agent classloader"() {
setup:
URL root = new URL("file://")
- final URLClassLoader agentLoader = new DatadogClassLoader(root, null, null)
+ final URLClassLoader agentLoader = new DatadogClassLoader(root, null, new DatadogClassLoader.BootstrapClassLoaderProxy(), null)
expect:
ClassLoaderMatcher.skipClassLoader().matches(agentLoader)
}

MODIFY
dd-java-agent/instrumentation/http-url-connection/src/test/groovy/UrlConnectionTest.groovy
dd-java-agent/instrumentation/http-url-connection/src/test/groovy/UrlConnectionTest.groovy
@@ -121,7 +121,7 @@ class UrlConnectionTest extends AgentTestRunner {
def "DatadogClassloader ClassNotFoundException doesn't create span"() {
given:
- ClassLoader datadogLoader = new DatadogClassLoader(null, null, null)
+ ClassLoader datadogLoader = new DatadogClassLoader(null, null, new DatadogClassLoader.BootstrapClassLoaderProxy(), null)
ClassLoader childLoader = new URLClassLoader(new URL[0], datadogLoader)
when:

Fix a couple tests using the wrong arguments