|
@@ -77,6 +77,14 @@ public class TestTraceAdmin extends SaslDataTransferTestCase {
|
|
return "127.0.0.1:" + dns.get(index).getIpcPort();
|
|
return "127.0.0.1:" + dns.get(index).getIpcPort();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Test
|
|
|
|
+ public void testNoOperator() throws Exception {
|
|
|
|
+ TraceAdmin trace = new TraceAdmin();
|
|
|
|
+ trace.setConf(new Configuration());
|
|
|
|
+ Assert.assertEquals("ret:1, You must specify an operation." + NEWLINE,
|
|
|
|
+ runTraceCommand(trace, "-host", "127.0.0.1:12346"));
|
|
|
|
+ }
|
|
|
|
+
|
|
@Test
|
|
@Test
|
|
public void testCreateAndDestroySpanReceiver() throws Exception {
|
|
public void testCreateAndDestroySpanReceiver() throws Exception {
|
|
Configuration conf = new Configuration();
|
|
Configuration conf = new Configuration();
|