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