Permalink
Browse files

Removed unnecesary reference to CorrelationId in PowerMock annotation.

  • Loading branch information...
1 parent dadab59 commit 429e10d4c5b60b678c2ef655e46dad02d90b7c3d @schuchert committed Mar 27, 2013
@@ -4,6 +4,7 @@
import com.yammer.metrics.core.MetricName;
import com.yammer.metrics.core.Timer;
import com.yammer.metrics.core.TimerContext;
+import shoe.example.log.SystemLogger;
import shoe.example.log.SystemLoggerFactory;
import shoe.example.toggles.TrackMetrics;
@@ -42,7 +43,8 @@ public void enter() {
context = responses.time();
}
- SystemLoggerFactory.get(className).info("start : %s-%s", methodName, correlationId.get());
+ SystemLogger logger = SystemLoggerFactory.get(className);
+ logger.info("start : %s-%s", methodName, correlationId.get());
}
public void exit(boolean success) {
@@ -16,7 +16,7 @@
@RunWith(PowerMockRunner.class)
@PowerMockIgnore( {"javax.management.*"})
-@PrepareForTest({MetricsRecorder.class, CorrelationId.class, SystemLoggerFactory.class})
+@PrepareForTest({MetricsRecorder.class, SystemLoggerFactory.class})
public class MetricsRecorderTest {
@Mock
SystemLogger logger;

0 comments on commit 429e10d

Please sign in to comment.