|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AntTaskMojoTest | Line # 9 | 10 | 0% | 2 | 1 | 90.9% |
0.90909094
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
(1) | |||
Result | |||
0.90909094
|
org.apache.torque.mojo.AntTaskMojoTest.testExecute org.apache.torque.mojo.AntTaskMojoTest.testExecute | 1 PASS | |
1 | package org.apache.torque.mojo; | |
2 | ||
3 | import org.apache.tools.ant.taskdefs.Echo; | |
4 | import org.codehaus.plexus.PlexusTestCase; | |
5 | ||
6 | /** | |
7 | * Tests AntTaskMojo | |
8 | */ | |
9 | public class AntTaskMojoTest extends PlexusTestCase { | |
10 | ||
11 | /** | |
12 | * | |
13 | */ | |
14 | 1 | public void testExecute() throws Exception { |
15 | 1 | try { |
16 | 1 | System.out.println("execute"); |
17 | ||
18 | 1 | Echo echoTask = new Echo(); |
19 | 1 | echoTask.setTaskName("empty task"); |
20 | 1 | AntTaskMojo instance = new AntTaskMojo(); |
21 | 1 | instance.setAntTask(echoTask); |
22 | 1 | instance.configureTask(); |
23 | 1 | echoTask.addText("hello world"); |
24 | 1 | instance.execute(); |
25 | } catch (Throwable t) { | |
26 | 0 | t.printStackTrace(); |
27 | } | |
28 | ||
29 | } | |
30 | } |
|