summaryrefslogtreecommitdiffstats
path: root/holmes-actions/src/main/java/org
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2018-01-24 10:40:37 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2018-01-24 10:40:37 +0800
commitfca9385739569e4bcf27903ebde80e078b3530b9 (patch)
tree1ff8f81056424ecd9a34077830b25f165a8dd122 /holmes-actions/src/main/java/org
parent6195cf0d6bf5b570d74f74d35af077a31f4f1b8c (diff)
Add Unit Tests
Change-Id: I972623ad6ab9b7ab06f4996614a37a51b4cedde5 Issue-ID: HOLMES-97 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'holmes-actions/src/main/java/org')
-rw-r--r--holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java b/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java
index 0f96181..91e9d42 100644
--- a/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java
+++ b/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java
@@ -57,12 +57,12 @@ public class Publisher {
response = webTarget.request(MediaType.APPLICATION_JSON)
.post(Entity.entity(content, MediaType.APPLICATION_JSON));
} catch (Exception e) {
- throw new CorrelationException("Failed to connect dcae.", e);
+ throw new CorrelationException("Failed to connect to DCAE.", e);
}
return checkStatus(response);
}
private boolean checkStatus(Response response) {
- return (response.getStatus() == HttpStatus.SC_OK) ? true : false;
+ return response.getStatus() == HttpStatus.SC_OK;
}
}