|
2 | 2 |
|
3 | 3 | import static org.junit.Assert.*; |
4 | 4 |
|
5 | | -import java.util.ArrayList; |
6 | | - |
7 | 5 | import org.junit.After; |
8 | 6 | import org.junit.AfterClass; |
9 | 7 | import org.junit.Before; |
10 | 8 | import org.junit.BeforeClass; |
11 | 9 | import org.junit.Ignore; |
12 | 10 | import org.junit.Test; |
13 | | -import org.ros2.rcljava.RCLJava; |
14 | 11 | import org.ros2.rcljava.tool.Ros2Topics; |
15 | 12 |
|
16 | 13 | public class TestRos2Topics { |
@@ -38,10 +35,40 @@ public final void testFullUsage() throws InterruptedException { |
38 | 35 | assertEquals(true, true); |
39 | 36 | } |
40 | 37 |
|
| 38 | + @Test |
| 39 | + public final void testEcho() throws InterruptedException { |
| 40 | + Ros2Topics.main(new String[]{"echo"}); |
| 41 | + assertEquals(true, true); |
| 42 | + } |
| 43 | + |
| 44 | + @Test |
| 45 | + public final void testFind() throws InterruptedException { |
| 46 | + Ros2Topics.main(new String[]{"find"}); |
| 47 | + assertEquals(true, true); |
| 48 | + } |
| 49 | + |
| 50 | + @Test |
| 51 | + public final void testHz() throws InterruptedException { |
| 52 | + Ros2Topics.main(new String[]{"hz"}); |
| 53 | + assertEquals(true, true); |
| 54 | + } |
| 55 | + |
41 | 56 | @Test |
42 | 57 | public final void testList() throws InterruptedException { |
43 | 58 | Ros2Topics.main(new String[]{"list"}); |
44 | 59 | assertEquals(true, true); |
45 | 60 | } |
46 | 61 |
|
| 62 | + @Test |
| 63 | + public final void testPub() throws InterruptedException { |
| 64 | + Ros2Topics.main(new String[]{"pub"}); |
| 65 | + assertEquals(true, true); |
| 66 | + } |
| 67 | + |
| 68 | + @Test |
| 69 | + public final void testType() throws InterruptedException { |
| 70 | + Ros2Topics.main(new String[]{"type"}); |
| 71 | + assertEquals(true, true); |
| 72 | + } |
| 73 | + |
47 | 74 | } |
0 commit comments