diff options
author | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2012-12-23 10:09:46 +0100 |
---|---|---|
committer | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2012-12-23 10:10:35 +0100 |
commit | 25fb3d4e2bac150627f091d310bafb6be465f37b (patch) | |
tree | 99a1b5da92484b3f58eb250e3e18074093bd6aca /org.jacoco.agent.rt.test | |
parent | 27e32e433ba0ac1fdec9290d3454d5b369c969cc (diff) | |
download | jacoco-25fb3d4e2bac150627f091d310bafb6be465f37b.tar.gz |
Offline instrumentation APIs.
Diffstat (limited to 'org.jacoco.agent.rt.test')
-rw-r--r-- | org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/AgentTest.java (renamed from org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/JacocoAgentTest.java) | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/JacocoAgentTest.java b/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/AgentTest.java index 2727b17c..969caa41 100644 --- a/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/JacocoAgentTest.java +++ b/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/AgentTest.java @@ -21,13 +21,17 @@ import org.jacoco.core.runtime.AgentOptions; import org.jacoco.core.runtime.AgentOptions.OutputMode; import org.junit.Test; -public class JacocoAgentTest { +/** + * Unit tests for {@link Agent}. + */ +public class AgentTest { + @Test public void shouldCreateController() { AgentOptions options = new AgentOptions(); options.setOutput(OutputMode.file); - JacocoAgent agent = new JacocoAgent(options, null); + Agent agent = new Agent(options, null); assertTrue(agent.createAgentController() instanceof LocalController); options.setOutput(OutputMode.tcpserver); @@ -40,9 +44,4 @@ public class JacocoAgentTest { assertTrue(agent.createAgentController() instanceof MBeanController); } - @Test - public void shouldParseOptions() { - JacocoAgent agent = new JacocoAgent("output=file", null); - assertTrue(agent.createAgentController() instanceof LocalController); - } } |