From 5a366fdab88b7205cedd2ba687109b80dc374544 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 10 Dec 2019 13:57:32 +0000 Subject: Fix minor checksyle issues in models New checkstyle profile flagged some minor issues in policy models. Issue-ID: POLICY-2165 Change-Id: I17ed070a3d55601ad31e48fdfd29fff01d29fa42 Signed-off-by: liamfallon --- .../java/org/onap/policy/models/base/PfModelExceptionInfoTest.java | 5 +++-- .../java/org/onap/policy/models/base/testconcepts/DummyPfKey.java | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'models-base/src/test/java/org') diff --git a/models-base/src/test/java/org/onap/policy/models/base/PfModelExceptionInfoTest.java b/models-base/src/test/java/org/onap/policy/models/base/PfModelExceptionInfoTest.java index 183b44c13..b418234c7 100644 --- a/models-base/src/test/java/org/onap/policy/models/base/PfModelExceptionInfoTest.java +++ b/models-base/src/test/java/org/onap/policy/models/base/PfModelExceptionInfoTest.java @@ -33,11 +33,12 @@ import org.onap.policy.models.errors.concepts.ErrorResponseInfo; * @author Liam Fallon (liam.fallon@est.tech) */ public class PfModelExceptionInfoTest { + @Test - public void exceptionInfoTest() { + public void testExceptionInfo() { try { throw new PfModelException(Response.Status.ACCEPTED, "HELLO"); - } catch (PfModelException pfme) { + } catch (PfModelException pfme) { String errorMessage = getErrorMessage(pfme); assertEquals("Server returned: Accepted", errorMessage.substring(0, 25)); } diff --git a/models-base/src/test/java/org/onap/policy/models/base/testconcepts/DummyPfKey.java b/models-base/src/test/java/org/onap/policy/models/base/testconcepts/DummyPfKey.java index 058ef37c3..ed2fb9885 100644 --- a/models-base/src/test/java/org/onap/policy/models/base/testconcepts/DummyPfKey.java +++ b/models-base/src/test/java/org/onap/policy/models/base/testconcepts/DummyPfKey.java @@ -33,7 +33,9 @@ import org.onap.policy.models.base.PfValidationResult; public class DummyPfKey extends PfKey { private static final long serialVersionUID = 1L; - public DummyPfKey() { } + public DummyPfKey() { + // Default constructor + } public DummyPfKey(DummyPfKey source) { super(source); -- cgit 1.2.3-korg