diff options
author | Jim Hahn <jrh3@att.com> | 2019-03-06 11:03:57 -0500 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-03-07 09:34:56 -0500 |
commit | 1b801bab1e07f5ca67aa41e5c5e684406a8e3a63 (patch) | |
tree | f1e8687bcf70fb50b32bcbeb93f22161beedd5d1 /main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java | |
parent | 0c5e1571b5ba2d5f5d3941f22b46f13a02f92351 (diff) |
Refactor REST server tests
Refactored the REST server tests so that each controller has
its own test class.
Also ensure things are shutdown by various tests.
Added comments.
Removed unneeded constant.
Updated license.
Modified code that restarts the REST server during tests.
Modified code to just change the activator's "alive" state to
false, leaving the REST server running.
Fixed comment.
Allocated server port.
Removed file that should not have been included.
Changed code to throw exceptions if activator methods are called while
in the wrong state.
Change-Id: I04a3a6654150797c23b3c86a6a39ecf8bb7f5a78
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java')
-rw-r--r-- | main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java b/main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java index 0c28de62..27d8ac2a 100644 --- a/main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java +++ b/main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2019 Nordix Foundation. + * Modifications Copyright (C) 2019 AT&T Intellectual Property. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +32,7 @@ public class CommonTestData { private static final String REST_SERVER_USER = "healthcheck"; private static final int REST_SERVER_PORT = 6969; private static final String REST_SERVER_HOST = "0.0.0.0"; - private static final boolean REST_SERVER_HTTPS = false; + private static final boolean REST_SERVER_HTTPS = true; private static final boolean REST_SERVER_AAF = false; public static final String PAP_GROUP_NAME = "PapGroup"; |