diff --git a/profiler/src/test/java/com/navercorp/pinpoint/profiler/context/MockTraceContextFactory.java b/profiler/src/test/java/com/navercorp/pinpoint/profiler/context/MockTraceContextFactory.java index 2d65300ec..61537934e 100644 --- a/profiler/src/test/java/com/navercorp/pinpoint/profiler/context/MockTraceContextFactory.java +++ b/profiler/src/test/java/com/navercorp/pinpoint/profiler/context/MockTraceContextFactory.java @@ -1,5 +1,6 @@ package com.nhn.pinpoint.profiler.context; +import com.nhn.pinpoint.bootstrap.config.ProfilerConfig; import com.nhn.pinpoint.bootstrap.context.TraceContext; /** @@ -8,6 +9,8 @@ import com.nhn.pinpoint.bootstrap.context.TraceContext; public class MockTraceContextFactory { public TraceContext create() { DefaultTraceContext traceContext = new DefaultTraceContext() ; - return traceContext; + ProfilerConfig profilerConfig = new ProfilerConfig(); + traceContext.setProfilerConfig(profilerConfig); + return traceContext; } }