summaryrefslogtreecommitdiffstats
path: root/controlloop/m2/test
diff options
context:
space:
mode:
authorHockla, Ali (ah999m) <ah999m@att.com>2020-01-15 15:04:09 -0600
committerHockla, Ali (ah999m) <ah999m@att.com>2020-01-16 10:05:19 -0600
commit25d3e43f27fb4d055af69c6934f3531fef115a02 (patch)
tree297d30eca5c5fa2095c7786cd52aca43f6f77eef /controlloop/m2/test
parent57fa6609eaac31098f468fde24a9300a38fca7ef (diff)
policy/drools-apps jdk11 upgrades
Issue-ID: POLICY-1587 Change-Id: I02bef6c829f2f24954ae73fb0c540ab7198775ce Signed-off-by: Hockla, Ali (ah999m) <ah999m@att.com>
Diffstat (limited to 'controlloop/m2/test')
-rw-r--r--controlloop/m2/test/src/test/java/org/onap/policy/m2/test/SimDmaap.java4
-rw-r--r--controlloop/m2/test/src/test/java/org/onap/policy/m2/test/Util.java8
2 files changed, 6 insertions, 6 deletions
diff --git a/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/SimDmaap.java b/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/SimDmaap.java
index 3a80f9581..925e9451f 100644
--- a/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/SimDmaap.java
+++ b/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/SimDmaap.java
@@ -173,7 +173,7 @@ public class SimDmaap {
* @return a JSON array, containing 0-limit messages
*/
String get(String group, long timeout, int limit)
- throws InterruptedException {
+ throws InterruptedException {
// look up the group -- create one if it doesn't exist
Group groupObj = groupTable.get(group);
if (groupObj == null) {
@@ -257,7 +257,7 @@ public class SimDmaap {
@PathParam("id") String id,
@QueryParam("timeout") long timeout,
@QueryParam("limit") int limit)
- throws InterruptedException {
+ throws InterruptedException {
logger.info("Receive: topic={}, group={}, id={}, timeout={}, limit={}",
topic, group, id, timeout, limit);
diff --git a/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/Util.java b/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/Util.java
index 393a030f0..e2d258cb6 100644
--- a/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/Util.java
+++ b/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/Util.java
@@ -98,7 +98,7 @@ public class Util {
* @return a String containing the contents of the file
*/
public static String fileToString(File file)
- throws IOException, FileNotFoundException {
+ throws IOException, FileNotFoundException {
try (FileInputStream fis = new FileInputStream(file)) {
String string = inputStreamToString(fis);
return string;
@@ -113,7 +113,7 @@ public class Util {
* @return a File, whose contents contain the string
*/
public static File stringToFile(String string, String suffix)
- throws IOException {
+ throws IOException {
File file = File.createTempFile("templates-util", suffix);
file.deleteOnExit();
@@ -130,7 +130,7 @@ public class Util {
* @return a File, whose contents contain the string
*/
public static File stringToFile(String string)
- throws IOException {
+ throws IOException {
return stringToFile(string, "");
}
@@ -162,7 +162,7 @@ public class Util {
* replaced
*/
public static String openAndReplace(String fileName, String... args)
- throws IOException, FileNotFoundException {
+ throws IOException, FileNotFoundException {
String text = fileToString(new File(fileName));
for (int i = 0 ; i < args.length ; i += 2) {
text = text.replace(args[i], args[i + 1]);