Add Unit Tests
[holmes/common.git] / holmes-actions / src / main / java / org / onap / holmes / common / dmaap / Publisher.java
index 0f96181..91e9d42 100644 (file)
@@ -57,12 +57,12 @@ public class Publisher {
             response = webTarget.request(MediaType.APPLICATION_JSON)\r
                     .post(Entity.entity(content, MediaType.APPLICATION_JSON));\r
         } catch (Exception e) {\r
-            throw new CorrelationException("Failed to connect dcae.", e);\r
+            throw new CorrelationException("Failed to connect to DCAE.", e);\r
         }\r
         return checkStatus(response);\r
     }\r
 \r
     private boolean checkStatus(Response response) {\r
-        return (response.getStatus() == HttpStatus.SC_OK) ? true : false;\r
+        return response.getStatus() == HttpStatus.SC_OK;\r
     }\r
 }\r