summaryrefslogtreecommitdiffstats
path: root/testsuites/integration/integration-uservice-test
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2019-12-06 14:08:23 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-06 14:08:23 +0000
commitf2afbf26813e09b464d48281a52c8c717536b6ec (patch)
tree98f0f49b4366fb7cb81a52be62f0dda086f1d817 /testsuites/integration/integration-uservice-test
parent93fa9642390a61d8db36e6e68795137b4895b021 (diff)
parent7a0a44eac6167cfeff935c39f2c3f20d3a893c3e (diff)
Merge "Minor changes for new Eclipse checkstyle checks"
Diffstat (limited to 'testsuites/integration/integration-uservice-test')
-rw-r--r--testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestContext.java44
-rw-r--r--testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestInitialContextFactory.java10
-rw-r--r--testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/executionproperties/DummyApexEventProducer.java5
3 files changed, 42 insertions, 17 deletions
diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestContext.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestContext.java
index a44f84444..b547cc482 100644
--- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestContext.java
+++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestContext.java
@@ -90,49 +90,65 @@ public class TestContext implements Context {
* {@inheritDoc}.
*/
@Override
- public void bind(final Name name, final Object obj) throws NamingException {}
+ public void bind(final Name name, final Object obj) throws NamingException {
+ // Not used here
+ }
/**
* {@inheritDoc}.
*/
@Override
- public void bind(final String name, final Object obj) throws NamingException {}
+ public void bind(final String name, final Object obj) throws NamingException {
+ // Not used here
+ }
/**
* {@inheritDoc}.
*/
@Override
- public void rebind(final Name name, final Object obj) throws NamingException {}
+ public void rebind(final Name name, final Object obj) throws NamingException {
+ // Not used here
+ }
/**
* {@inheritDoc}.
*/
@Override
- public void rebind(final String name, final Object obj) throws NamingException {}
+ public void rebind(final String name, final Object obj) throws NamingException {
+ // Not used here
+ }
/**
* {@inheritDoc}.
*/
@Override
- public void unbind(final Name name) throws NamingException {}
+ public void unbind(final Name name) throws NamingException {
+ // Not used here
+ }
/**
* {@inheritDoc}.
*/
@Override
- public void unbind(final String name) throws NamingException {}
+ public void unbind(final String name) throws NamingException {
+ // Not used here
+ }
/**
* {@inheritDoc}.
*/
@Override
- public void rename(final Name oldName, final Name newName) throws NamingException {}
+ public void rename(final Name oldName, final Name newName) throws NamingException {
+ // Not used here
+ }
/**
* {@inheritDoc}.
*/
@Override
- public void rename(final String oldName, final String newName) throws NamingException {}
+ public void rename(final String oldName, final String newName) throws NamingException {
+ // Not used here
+ }
/**
* {@inheritDoc}.
@@ -170,13 +186,17 @@ public class TestContext implements Context {
* {@inheritDoc}.
*/
@Override
- public void destroySubcontext(final Name name) throws NamingException {}
+ public void destroySubcontext(final Name name) throws NamingException {
+ // Not used here
+ }
/**
* {@inheritDoc}.
*/
@Override
- public void destroySubcontext(final String name) throws NamingException {}
+ public void destroySubcontext(final String name) throws NamingException {
+ // Not used here
+ }
/**
* {@inheritDoc}.
@@ -270,7 +290,9 @@ public class TestContext implements Context {
* {@inheritDoc}.
*/
@Override
- public void close() throws NamingException {}
+ public void close() throws NamingException {
+ // Not used here
+ }
/**
* {@inheritDoc}.
diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestInitialContextFactory.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestInitialContextFactory.java
index ddd70a3b9..c54c790cb 100644
--- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestInitialContextFactory.java
+++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestInitialContextFactory.java
@@ -5,15 +5,15 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
* SPDX-License-Identifier: Apache-2.0
* ============LICENSE_END=========================================================
*/
@@ -40,7 +40,9 @@ public class TestInitialContextFactory implements InitialContextFactory {
*
* @throws NamingException the naming exception
*/
- public TestInitialContextFactory() throws NamingException {}
+ public TestInitialContextFactory() throws NamingException {
+ // Default constructor
+ }
/**
* {@inheritDoc}.
diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/executionproperties/DummyApexEventProducer.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/executionproperties/DummyApexEventProducer.java
index 0c2ac32fa..670f4991f 100644
--- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/executionproperties/DummyApexEventProducer.java
+++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/executionproperties/DummyApexEventProducer.java
@@ -125,7 +125,6 @@ public class DummyApexEventProducer implements ApexEventProducer {
throw new ApexEventRuntimeException(message);
}
-
try {
executionProperties.store(new FileOutputStream(new File(dummyProducerProperties.getPropertyFileName())),
"");
@@ -141,5 +140,7 @@ public class DummyApexEventProducer implements ApexEventProducer {
* {@inheritDoc}.
*/
@Override
- public void stop() {}
+ public void stop() {
+ // Not used
+ }
}