*/
/*
- * Purpose: CommonCollectorJunitTestRunner is the main class where test suit execution starts its test cases execution
- * the common collector test suit has been written in order to incorporate functional and logical testing of collector features
- *
+ * Purpose: CommonCollectorJunitTestRunner is the main class where test suit execution starts its
+ * test cases execution the common collector test suit has been written in order to incorporate
+ * functional and logical testing of collector features.
*/
package org.onap.dcae.vestest;
+
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
-import org.junit.runner.RunWith;
import org.junit.runner.notification.Failure;
-import org.onap.dcae.commonFunction.CommonStartup;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class VESCollectorJunitTestRunner {
+public class VesCollectorJunitTestRunner {
+
+ private static final Logger log = LoggerFactory.getLogger(VesCollectorJunitTestRunner.class);
+
+ /**
+ * Runner for test case.
+ *
+ * @param args command line arguments
+ */
+ public static void main(String[] args) {
- public static void main(String[] args) {
+ log.info("STARTING TEST SUITE EXECUTION.....");
- System.out.println("STARTING TEST SUITE EXECUTION.....");
-
- Result result = JUnitCore.runClasses(VESCollectorJunitTest.class);
+ Result result = JUnitCore.runClasses(VesCollectorJunitTest.class);
- for (Failure failure : result.getFailures()) {
- System.out.println(failure.toString());
- }
+ for (Failure failure : result.getFailures()) {
+ log.info(failure.toString());
+ }
-
- System.out.println("Execution Final result : "+result.wasSuccessful());
- }
-
+ log.info("Execution Final result : " + result.wasSuccessful());
+ }
}