aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/org
diff options
context:
space:
mode:
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2018-02-07 10:02:14 +0100
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2018-02-07 10:02:14 +0100
commitc1e886ebabb05d113e5815885c4d0d96981a0ccc (patch)
treebc812647f0185f59c0ab50c33fb6ae358a92ece8 /src/test/java/org
parenteca731806cfc887c05aca8b35277cee452f5c264 (diff)
Improve code of unit tests.
Improve code according to Sonar result Issue-ID: CLAMP-74 Change-Id: I73b06ce29ac58df160441b20129bd1a3574af9ef Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/onap/clamp/clds/transform/XslTransformerTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/java/org/onap/clamp/clds/transform/XslTransformerTest.java b/src/test/java/org/onap/clamp/clds/transform/XslTransformerTest.java
index ec34dd60..fd61ef4e 100644
--- a/src/test/java/org/onap/clamp/clds/transform/XslTransformerTest.java
+++ b/src/test/java/org/onap/clamp/clds/transform/XslTransformerTest.java
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* ONAP CLAMP
* ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
* reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -29,6 +29,7 @@ import java.io.IOException;
import javax.xml.transform.TransformerException;
+import org.json.JSONException;
import org.junit.Test;
import org.onap.clamp.clds.util.ResourceFileUtil;
import org.skyscreamer.jsonassert.JSONAssert;
@@ -42,12 +43,12 @@ public class XslTransformerTest {
* In case of issues
* @throws IOException
* In case of issues
+ * @throws JSONException
*/
@Test
- public void xslTransformTest() throws TransformerException, IOException {
+ public void xslTransformTest() throws TransformerException, IOException, JSONException {
XslTransformer xslTransformer = new XslTransformer();
xslTransformer.setXslResourceName("xsl/clds-bpmn-transformer.xsl");
-
String bpmnJson = xslTransformer
.doXslTransformToString(ResourceFileUtil.getResourceAsString("example/xsl-validation/modelBpmn.xml"));
assertNotNull(bpmnJson);