01: package com.commsen.stopwatch;
02:
03: import org.apache.log4j.Logger;
04:
05: import com.commsen.stopwatch.engines.DefaultStopwatchEngine;
06:
07: /**
08: * Unit test for {@link com.commsen.stopwatch.engines.DefaultStopwatchEngine}
09: */
10: public class DefaultStopwatchEngineTest extends
11: AbstractBaseStopwatchTest {
12:
13: /**
14: * Logger for this class
15: */
16: private static final Logger log = Logger
17: .getLogger(DefaultStopwatchEngineTest.class);
18:
19: /**
20: * @see com.commsen.stopwatch.AbstractBaseStopwatchTest#setUp()
21: */
22: protected void setUp() throws Exception {
23: super .setUp();
24: System.setProperty(Stopwatch.SYSTEM_PROPERTIES_PREFIX
25: + Stopwatch.PROPERTY_ENGINE,
26: DefaultStopwatchEngine.class.getName());
27: System.setProperty(Stopwatch.SYSTEM_PROPERTIES_PREFIX
28: + Stopwatch.PROPERTY_MODE, "NORMAL");
29: Stopwatch.reset();
30: }
31:
32: public Logger getLogger() {
33: return log;
34: }
35:
36: }
|