From 4450f4ecfcdb0a295ee51b1adf0f12a840b5aa74 Mon Sep 17 00:00:00 2001 From: HyunGil Jeong Date: Mon, 13 Apr 2015 15:23:37 +0900 Subject: [PATCH 1/2] added check for required env variables --- pom.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pom.xml b/pom.xml index 3f6a29e34..9c5d0baab 100644 --- a/pom.xml +++ b/pom.xml @@ -726,6 +726,31 @@ findbugs-maven-plugin 2.5.5 + + org.apache.maven.plugins + maven-enforcer-plugin + 1.4 + + + enforce-pinpoint-build-requirements + validate + + enforce + + + + + JAVA_6_HOME + + + JAVA_7_HOME + + + true + + + + From cfc1befc7d350abee2625c5ce0abaa0ea14d2513 Mon Sep 17 00:00:00 2001 From: Jongho Moon Date: Mon, 13 Apr 2015 15:45:59 +0900 Subject: [PATCH 2/2] Fixed test failure --- .../pinpoint/profiler/plugin/DefaultInterceptorFactoryTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/profiler/src/test/java/com/navercorp/pinpoint/profiler/plugin/DefaultInterceptorFactoryTest.java b/profiler/src/test/java/com/navercorp/pinpoint/profiler/plugin/DefaultInterceptorFactoryTest.java index 57494720c..f9e2f1f1a 100644 --- a/profiler/src/test/java/com/navercorp/pinpoint/profiler/plugin/DefaultInterceptorFactoryTest.java +++ b/profiler/src/test/java/com/navercorp/pinpoint/profiler/plugin/DefaultInterceptorFactoryTest.java @@ -49,6 +49,7 @@ public class DefaultInterceptorFactoryTest { @Before public void setUp() { reset(instrumentor, traceContext, aClass, aMethod); + when(pluginContext.getTraceContext()).thenReturn(traceContext); when(aMethod.getDescriptor()).thenReturn(descriptor); }