diff options
Diffstat (limited to 'src/test')
20 files changed, 169 insertions, 170 deletions
diff --git a/src/test/java/com/att/nsa/mr/client/HostSelectorTest.java b/src/test/java/com/att/nsa/mr/client/HostSelectorTest.java index ef0dfe0..fd6dee8 100644 --- a/src/test/java/com/att/nsa/mr/client/HostSelectorTest.java +++ b/src/test/java/com/att/nsa/mr/client/HostSelectorTest.java @@ -46,21 +46,21 @@ public class HostSelectorTest { @Test
public void testSelectBaseHost() {
-// HostSelector selector = new HostSelector("host");
-//
-// selector.selectBaseHost();
-// assertTrue(true);
-//
+ HostSelector selector = new HostSelector("host");
+
+ selector.selectBaseHost();
+ assertTrue(true);
+
}
@Test
public void testReportReachabilityProblem() {
-/* HostSelector selector = new HostSelector("host");
+ HostSelector selector = new HostSelector("host");
selector.reportReachabilityProblem(100, null);
- assertTrue(true);*/
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/client/MRClientBuildersTest.java b/src/test/java/com/att/nsa/mr/client/MRClientBuildersTest.java index 7241847..0908779 100644 --- a/src/test/java/com/att/nsa/mr/client/MRClientBuildersTest.java +++ b/src/test/java/com/att/nsa/mr/client/MRClientBuildersTest.java @@ -46,7 +46,7 @@ public class MRClientBuildersTest { @Before
public void setUp() throws Exception {
- /* for (int i = 0; i < 10; i++) {
+ for (int i = 0; i < 10; i++) {
hostSet.add("host" + (i + 1));
hostArray[i] = "host" + (i + 1);
}
@@ -55,7 +55,7 @@ public class MRClientBuildersTest { pBuilder = new MRClientBuilders.PublisherBuilder();
- mrcBuilders = new MRClientBuilders();*/
+ mrcBuilders = new MRClientBuilders();
}
@@ -83,67 +83,67 @@ public class MRClientBuildersTest { @Test
public void testOnTopic() {
-/* builder.onTopic("testTopic");
- assertTrue(true);*/
+ builder.onTopic("testTopic");
+ assertTrue(true);
}
@Test
public void testKnownAs() {
- /* builder.knownAs("CG1", "23");
+ builder.knownAs("CG1", "23");
assertTrue(true);
-*/
+
}
@Test
public void testAuthenticatedBy() {
-/* builder.authenticatedBy("apikey", "apisecret");
- assertTrue(true);*/
+ builder.authenticatedBy("apikey", "apisecret");
+ assertTrue(true);
}
@Test
public void testWaitAtServer() {
-// builder.waitAtServer(100);
-// assertTrue(true);
+ builder.waitAtServer(100);
+ assertTrue(true);
}
@Test
public void testReceivingAtMost() {
- /*builder.receivingAtMost(100);
- assertTrue(true);*/
+ builder.receivingAtMost(100);
+ assertTrue(true);
}
@Test
public void testWithServerSideFilter() {
- /*builder.withServerSideFilter("filter");
- assertTrue(true);*/
+ builder.withServerSideFilter("filter");
+ assertTrue(true);
}
@Test
public void testBuild() {
- /* try {
+ try {
builder.build();
} catch (IllegalArgumentException e) {
assertTrue(true);
- }*/
+ }
}
@Test
public void testUsingHosts3() {
-/* pBuilder.usingHosts("testTopic");
+ /*pBuilder.usingHosts("testTopic");
assertTrue(true);
*/
}
@@ -183,68 +183,68 @@ public class MRClientBuildersTest { @Test
public void testWithCompresion() {
- /* pBuilder.withCompresion();
- assertTrue(true);*/
+ pBuilder.withCompresion();
+ assertTrue(true);
}
@Test
public void testWithoutCompresion() {
- /* pBuilder.withoutCompresion();
- assertTrue(true);*/
+ pBuilder.withoutCompresion();
+ assertTrue(true);
}
@Test
public void testEnableCompresion() {
- /* pBuilder.enableCompresion(true);
- assertTrue(true);*/
+ pBuilder.enableCompresion(true);
+ assertTrue(true);
}
@Test
public void testAuthenticatedBy2() {
- /* pBuilder.authenticatedBy("apikey", "apisecret");
- assertTrue(true);*/
+ pBuilder.authenticatedBy("apikey", "apisecret");
+ assertTrue(true);
}
@Test
public void testBuild2() {
- /* try {
+ try {
pBuilder.build();
} catch (IllegalArgumentException e) {
assertTrue(true);
- }*/
+ }
}
@Test
public void test$testInject() {
- /*try {
+ try {
mrcBuilders.$testInject(builder.build());
} catch (IllegalArgumentException e) {
assertTrue(true);
- }*/
+ }
}
@Test
public void test$testInject2() {
-// try {
-//
-// mrcBuilders.$testInject(pBuilder.build());
-// } catch (IllegalArgumentException e) {
-// assertTrue(true);
-// }
+ try {
+
+ mrcBuilders.$testInject(pBuilder.build());
+ } catch (IllegalArgumentException e) {
+ assertTrue(true);
+ }
}
}
diff --git a/src/test/java/com/att/nsa/mr/client/MRClientFactoryTest.java b/src/test/java/com/att/nsa/mr/client/MRClientFactoryTest.java index e8114c3..79f52f1 100644 --- a/src/test/java/com/att/nsa/mr/client/MRClientFactoryTest.java +++ b/src/test/java/com/att/nsa/mr/client/MRClientFactoryTest.java @@ -64,9 +64,9 @@ public class MRClientFactoryTest { @Test
public void testCreateConsumer() {
- /* MRClientFactory.createConsumer("hostList hostList2", "testTopic");
- assertTrue(true);*/
-
+ /*MRClientFactory.createConsumer("hostList hostList2", "testTopic");
+ assertTrue(true);
+*/
}
@Test
@@ -80,9 +80,9 @@ public class MRClientFactoryTest { @Test
public void testCreateConsumer3() {
- /* MRClientFactory.createConsumer(hostSet, "testTopic", "filter");
- assertTrue(true);*/
-
+ /*MRClientFactory.createConsumer(hostSet, "testTopic", "filter");
+ assertTrue(true);
+*/
}
@Test
@@ -112,7 +112,7 @@ public class MRClientFactoryTest { @Test
public void testCreateConsumer7() {
-/* MRClientFactory.createConsumer(hostSet, "testTopic", "CG1", "22", 100, 100, "filter", "apikey", "apisecret");
+ /*MRClientFactory.createConsumer(hostSet, "testTopic", "CG1", "22", 100, 100, "filter", "apikey", "apisecret");
assertTrue(true);*/
}
@@ -194,25 +194,25 @@ public class MRClientFactoryTest { @Test
public void testCreateIdentityManager() {
-/*
+
MRClientFactory.createIdentityManager(hostSet, "apikey", "apisecret");
- assertTrue(true);*/
+ assertTrue(true);
}
@Test
public void testCreateTopicManager() {
- /* MRClientFactory.createTopicManager(hostSet, "apikey", "apisecret");
+ MRClientFactory.createTopicManager(hostSet, "apikey", "apisecret");
- assertTrue(true);*/
+ assertTrue(true);
}
@Test
public void testCreateConsumer8() {
-/*
+
try {
MRClientFactory.createConsumer("/consumer");
} catch (IOException e) {
@@ -220,35 +220,35 @@ public class MRClientFactoryTest { e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
@Test
public void testCreateConsumer9() {
-// MRClientFactory.createConsumer("host", "topic", "username", "password", "group", "23", "protocolFlag",
-// "/consumer", 1, 2);
-//
-// assertTrue(true);
+ /*MRClientFactory.createConsumer("host", "topic", "username", "password", "group", "23", "protocolFlag",
+ "/consumer", 1, 2);
+ assertTrue(true);
+*/
}
@Test
public void testCreateConsumer10() {
-// MRClientFactory.createConsumer("host", "topic", "username", "password", "group", "23", 1, 2, "protocolFlag",
-// "/consumer");
-//
-// assertTrue(true);
+ /*MRClientFactory.createConsumer("host", "topic", "username", "password", "group", "23", 1, 2, "protocolFlag",
+ "/consumer");
+
+ assertTrue(true);*/
}
@Test
public void test$testInject() {
-/* MRClientFactory.$testInject(null);
- assertTrue(true);*/
+ MRClientFactory.$testInject(null);
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/dme/client/DefaultLoggingFailoverFaultHandlerTest.java b/src/test/java/com/att/nsa/mr/dme/client/DefaultLoggingFailoverFaultHandlerTest.java index 45dbdd0..5f67f6d 100644 --- a/src/test/java/com/att/nsa/mr/dme/client/DefaultLoggingFailoverFaultHandlerTest.java +++ b/src/test/java/com/att/nsa/mr/dme/client/DefaultLoggingFailoverFaultHandlerTest.java @@ -53,8 +53,8 @@ public class DefaultLoggingFailoverFaultHandlerTest { @Test
public void testHandleEndpointFailover() {
-// handler.handleEndpointFailover(null);
-// assertTrue(true);
+ /* handler.handleEndpointFailover(null);
+ assertTrue(true);*/
}
diff --git a/src/test/java/com/att/nsa/mr/dme/client/SimpleExamplePublisherTest.java b/src/test/java/com/att/nsa/mr/dme/client/SimpleExamplePublisherTest.java index 1daef2f..67051b1 100644 --- a/src/test/java/com/att/nsa/mr/dme/client/SimpleExamplePublisherTest.java +++ b/src/test/java/com/att/nsa/mr/dme/client/SimpleExamplePublisherTest.java @@ -53,13 +53,13 @@ public class SimpleExamplePublisherTest { @Test
public void testPublishMessage() {
-/* try {
+ try {
pub.publishMessage("/producer");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/logging/MRAppenderTest.java b/src/test/java/com/att/nsa/mr/logging/MRAppenderTest.java index 7b84e4a..0a59d97 100644 --- a/src/test/java/com/att/nsa/mr/logging/MRAppenderTest.java +++ b/src/test/java/com/att/nsa/mr/logging/MRAppenderTest.java @@ -46,138 +46,138 @@ public class MRAppenderTest { @Test
public void testClose() {
- /*try {
+ try {
appender.close();
} catch (NullPointerException e) {
assertTrue(true);
}
assertTrue(true);
-*/
+
}
@Test
public void testRequiresLayout() {
-/*
+
appender.requiresLayout();
- assertTrue(true);*/
+ assertTrue(true);
}
@Test
public void testAppend() {
- /*try {
+ try {
appender.append(null);
} catch (NullPointerException e) {
assertTrue(true);
}
assertTrue(true);
-*/
+
}
@Test
public void testActivateOptions() {
-/* appender.activateOptions();
- assertTrue(true);*/
+ appender.activateOptions();
+ assertTrue(true);
}
@Test
public void testGetTopic() {
- /* appender.getTopic();
+ appender.getTopic();
assertTrue(true);
-*/
+
}
@Test
public void testSetTopic() {
- /*appender.setTopic("testTopic");
+ appender.setTopic("testTopic");
assertTrue(true);
-*/
+
}
@Test
public void testGetPartition() {
- /* appender.getPartition();
+ appender.getPartition();
assertTrue(true);
-*/
+
}
@Test
public void testSetPartition() {
- /* appender.setPartition("partition");
- assertTrue(true);*/
+ appender.setPartition("partition");
+ assertTrue(true);
}
@Test
public void testGetHosts() {
-/* appender.getHosts();
- assertTrue(true);*/
+ appender.getHosts();
+ assertTrue(true);
}
@Test
public void testSetHosts() {
-/*
+
appender.setHosts("hosts");
assertTrue(true);
-*/
+
}
@Test
public void testGetMaxBatchSize() {
- /*appender.getMaxBatchSize();
- assertTrue(true);*/
+ appender.getMaxBatchSize();
+ assertTrue(true);
}
@Test
public void testSetMaxBatchSize() {
- /* appender.setMaxBatchSize(20);
- assertTrue(true);*/
+ appender.setMaxBatchSize(20);
+ assertTrue(true);
}
@Test
public void testGetMaxAgeMs() {
- /*appender.getMaxAgeMs();
- assertTrue(true);*/
+ appender.getMaxAgeMs();
+ assertTrue(true);
}
@Test
public void testSetMaxAgeMs() {
- /*appender.setMaxAgeMs(15);
- assertTrue(true);*/
+ appender.setMaxAgeMs(15);
+ assertTrue(true);
}
@Test
public void testIsCompress() {
- /* appender.isCompress();
- assertTrue(true);*/
+ appender.isCompress();
+ assertTrue(true);
}
@Test
public void testSetCompress() {
- /* appender.setCompress(true);
- assertTrue(true);*/
+ appender.setCompress(true);
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/test/clients/ConsolePublisherTest.java b/src/test/java/com/att/nsa/mr/test/clients/ConsolePublisherTest.java index 9319c2c..5ccd10c 100644 --- a/src/test/java/com/att/nsa/mr/test/clients/ConsolePublisherTest.java +++ b/src/test/java/com/att/nsa/mr/test/clients/ConsolePublisherTest.java @@ -42,13 +42,13 @@ public class ConsolePublisherTest { @Test
public void testMain() {
-// try {
-// ConsolePublisher.main(null);
-// } catch (Exception e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// }
-// assertTrue(true);
+ try {
+ ConsolePublisher.main(null);
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/test/clients/ProtocolTypeConstantsTest.java b/src/test/java/com/att/nsa/mr/test/clients/ProtocolTypeConstantsTest.java index 4e49b2d..ce4b72c 100644 --- a/src/test/java/com/att/nsa/mr/test/clients/ProtocolTypeConstantsTest.java +++ b/src/test/java/com/att/nsa/mr/test/clients/ProtocolTypeConstantsTest.java @@ -35,7 +35,7 @@ public class ProtocolTypeConstantsTest { @Before
public void setUp() throws Exception {
- //constants = new ProtocolTypeConstants();
+ // constants = new ProtocolTypeConstants();
}
@@ -47,13 +47,13 @@ public class ProtocolTypeConstantsTest { @Test
public void testGetValue() {
-// try {
-// constants.getValue();
-// } catch (Exception e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// }
-// assertTrue(true);
+ try {
+ constants.getValue();
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/test/clients/SampleConsumerTest.java b/src/test/java/com/att/nsa/mr/test/clients/SampleConsumerTest.java index 72f4f88..fb0ffd2 100644 --- a/src/test/java/com/att/nsa/mr/test/clients/SampleConsumerTest.java +++ b/src/test/java/com/att/nsa/mr/test/clients/SampleConsumerTest.java @@ -42,13 +42,13 @@ public class SampleConsumerTest { @Test
public void testMain() {
- /* try {
+ try {
SampleConsumer.main(null);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/test/clients/SamplePublisherTest.java b/src/test/java/com/att/nsa/mr/test/clients/SamplePublisherTest.java index 11c7383..98100cd 100644 --- a/src/test/java/com/att/nsa/mr/test/clients/SamplePublisherTest.java +++ b/src/test/java/com/att/nsa/mr/test/clients/SamplePublisherTest.java @@ -42,14 +42,14 @@ public class SamplePublisherTest { @Test
public void testMain() {
- /* try {
+ try {
SamplePublisher.main(null);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
assertTrue(true);
-*/
+
}
}
diff --git a/src/test/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerTest.java b/src/test/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerTest.java index 01a40f3..1887ff9 100644 --- a/src/test/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerTest.java +++ b/src/test/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerTest.java @@ -42,13 +42,13 @@ public class SimpleExampleConsumerTest { @Test
public void testMain() {
- /*try {
+ try {
SimpleExampleConsumer.main(null);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerWithReturnResponseTest.java b/src/test/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerWithReturnResponseTest.java index 58b1012..24715e3 100644 --- a/src/test/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerWithReturnResponseTest.java +++ b/src/test/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerWithReturnResponseTest.java @@ -42,13 +42,12 @@ public class SimpleExampleConsumerWithReturnResponseTest { @Test
public void testMain() {
-// try {
-// SimpleExampleConsumerWithReturnResponse.main(null);
-// } catch (Exception e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// }
-// assertTrue(true);
+ /*try {
+ SimpleExampleConsumerWithReturnResponse.main(null);
+ } catch (Exception e) {
+ // TODO Auto-generated catch block e.printStackTrace();
+ }
+ assertTrue(true);*/
}
diff --git a/src/test/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherTest.java b/src/test/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherTest.java index f92142b..b30d523 100644 --- a/src/test/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherTest.java +++ b/src/test/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherTest.java @@ -43,7 +43,7 @@ public class SimpleExamplePublisherTest { @Test
public void testPublishMessage() {
- /* try {
+ try {
pub.publishMessage("/producer");
} catch (NullPointerException e) {
assertTrue(true);
@@ -58,20 +58,20 @@ public class SimpleExamplePublisherTest { e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
@Test
public void testMain() {
-// try {
-// SimpleExamplePublisher.main(null);
-// } catch (Exception e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// }
-// assertTrue(true);
+ try {
+ SimpleExamplePublisher.main(null);
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherWithResponseTest.java b/src/test/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherWithResponseTest.java index fb8cddf..80ff2a5 100644 --- a/src/test/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherWithResponseTest.java +++ b/src/test/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherWithResponseTest.java @@ -44,26 +44,26 @@ public class SimpleExamplePublisherWithResponseTest { @Test
public void testMain() {
- /* try {
+ try {
SimpleExamplePublisherWithResponse.main(null);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
@Test
public void testPublishMessage() {
- /* try {
+ try {
pub.publishMessage("/producer", 100);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
}
diff --git a/src/test/java/com/att/nsa/mr/tools/ApiKeyCommandTest.java b/src/test/java/com/att/nsa/mr/tools/ApiKeyCommandTest.java index dca1a6f..b714570 100644 --- a/src/test/java/com/att/nsa/mr/tools/ApiKeyCommandTest.java +++ b/src/test/java/com/att/nsa/mr/tools/ApiKeyCommandTest.java @@ -80,7 +80,7 @@ public class ApiKeyCommandTest { @Test
public void testExecute() {
- /* try {
+ try {
command.execute(parts, new MRCommandContext(), new PrintStream("/filename"));
} catch (CommandNotReadyException e) {
// TODO Auto-generated catch block
@@ -90,14 +90,14 @@ public class ApiKeyCommandTest { e.printStackTrace();
}
assertTrue(true);
-*/
+
}
@Test
public void testDisplayHelp() {
- /*try {
+ try {
command.displayHelp(new PrintStream("/filename"));
} catch (NullPointerException e) {
// TODO Auto-generated catch block
@@ -106,7 +106,7 @@ public class ApiKeyCommandTest { // TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/tools/AuthCommandTest.java b/src/test/java/com/att/nsa/mr/tools/AuthCommandTest.java index 1a3f77b..4b5e2d5 100644 --- a/src/test/java/com/att/nsa/mr/tools/AuthCommandTest.java +++ b/src/test/java/com/att/nsa/mr/tools/AuthCommandTest.java @@ -80,7 +80,7 @@ public class AuthCommandTest { @Test
public void testExecute() {
- /* try {
+ try {
command.execute(parts, new MRCommandContext(), new PrintStream("/filename"));
} catch (CommandNotReadyException e) {
// TODO Auto-generated catch block
@@ -89,7 +89,7 @@ public class AuthCommandTest { // TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
@@ -97,7 +97,7 @@ public class AuthCommandTest { @Test
public void testDisplayHelp() {
-/* try {
+ try {
command.displayHelp(new PrintStream("/filename"));
} catch (NullPointerException e) {
// TODO Auto-generated catch block
@@ -106,7 +106,7 @@ public class AuthCommandTest { // TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/tools/ClusterCommandTest.java b/src/test/java/com/att/nsa/mr/tools/ClusterCommandTest.java index 9c295fb..1d17d18 100644 --- a/src/test/java/com/att/nsa/mr/tools/ClusterCommandTest.java +++ b/src/test/java/com/att/nsa/mr/tools/ClusterCommandTest.java @@ -59,28 +59,28 @@ public class ClusterCommandTest { @Test
public void testGetMatches() {
- /* command.getMatches();
- assertTrue(true);*/
+ command.getMatches();
+ assertTrue(true);
}
@Test
public void testCheckReady() {
-/* try {
+ try {
command.checkReady(new MRCommandContext());
} catch (CommandNotReadyException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
@Test
public void testExecute() {
- /*try {
+ try {
command.execute(parts, new MRCommandContext(), new PrintStream("/filename"));
} catch (CommandNotReadyException e) {
// TODO Auto-generated catch block
@@ -89,7 +89,7 @@ public class ClusterCommandTest { // TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
@@ -97,7 +97,7 @@ public class ClusterCommandTest { @Test
public void testDisplayHelp() {
- /* try {
+ try {
command.displayHelp(new PrintStream("/filename"));
} catch (NullPointerException e) {
// TODO Auto-generated catch block
@@ -106,7 +106,7 @@ public class ClusterCommandTest { // TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/tools/MessageCommandTest.java b/src/test/java/com/att/nsa/mr/tools/MessageCommandTest.java index 03fcd21..f0933d6 100644 --- a/src/test/java/com/att/nsa/mr/tools/MessageCommandTest.java +++ b/src/test/java/com/att/nsa/mr/tools/MessageCommandTest.java @@ -80,7 +80,7 @@ public class MessageCommandTest { @Test
public void testExecute() {
- /*try {
+ try {
command.execute(parts, new MRCommandContext(), new PrintStream("/filename"));
} catch (CommandNotReadyException e) {
// TODO Auto-generated catch block
@@ -90,14 +90,14 @@ public class MessageCommandTest { e.printStackTrace();
}
assertTrue(true);
-*/
+
}
@Test
public void testDisplayHelp() {
- /* try {
+ try {
command.displayHelp(new PrintStream("/filename"));
} catch (NullPointerException e) {
// TODO Auto-generated catch block
@@ -106,7 +106,7 @@ public class MessageCommandTest { // TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/tools/TopicCommandTest.java b/src/test/java/com/att/nsa/mr/tools/TopicCommandTest.java index 5372fff..9429a8e 100644 --- a/src/test/java/com/att/nsa/mr/tools/TopicCommandTest.java +++ b/src/test/java/com/att/nsa/mr/tools/TopicCommandTest.java @@ -80,7 +80,7 @@ public class TopicCommandTest { @Test
public void testExecute() {
-/* try {
+ try {
command.execute(parts, new MRCommandContext(), new PrintStream("/filename"));
} catch (CommandNotReadyException e) {
// TODO Auto-generated catch block
@@ -90,14 +90,14 @@ public class TopicCommandTest { e.printStackTrace();
}
assertTrue(true);
-*/
+
}
@Test
public void testDisplayHelp() {
- /*try {
+ try {
command.displayHelp(new PrintStream("/filename"));
} catch (NullPointerException e) {
// TODO Auto-generated catch block
@@ -106,7 +106,7 @@ public class TopicCommandTest { // TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
diff --git a/src/test/java/com/att/nsa/mr/tools/TraceCommandTest.java b/src/test/java/com/att/nsa/mr/tools/TraceCommandTest.java index 9bc0322..b269b20 100644 --- a/src/test/java/com/att/nsa/mr/tools/TraceCommandTest.java +++ b/src/test/java/com/att/nsa/mr/tools/TraceCommandTest.java @@ -80,7 +80,7 @@ public class TraceCommandTest { @Test
public void testExecute() {
- /*try {
+ try {
command.execute(parts, new MRCommandContext(), new PrintStream("/filename"));
} catch (CommandNotReadyException e) {
// TODO Auto-generated catch block
@@ -89,7 +89,7 @@ public class TraceCommandTest { // TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
@@ -97,7 +97,7 @@ public class TraceCommandTest { @Test
public void testDisplayHelp() {
-/* try {
+ try {
command.displayHelp(new PrintStream("/filename"));
} catch (NullPointerException e) {
// TODO Auto-generated catch block
@@ -106,7 +106,7 @@ public class TraceCommandTest { // TODO Auto-generated catch block
e.printStackTrace();
}
- assertTrue(true);*/
+ assertTrue(true);
}
|