summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorMuller, Andrew (am8383) <am8383@att.com>2020-03-13 14:16:36 -0400
committerMuller, Andrew (am8383) <am8383@att.com>2020-03-13 15:58:01 -0400
commitf577f8df768d2288876cd982822cba325b70d251 (patch)
tree208dcb51b8bc289ba74fb0d476a1eecb376f5bb3 /src/main
parentb740a78e4944234cddcbafc33a2af9a8e5c33472 (diff)
Add test file
Issue-ID: AAI-2829 Signed-off-by: Muller, Andrew (am8383) <am8383@att.com> Change-Id: I6b19ff4da5fc1d51e8da2a364113f693ef80cfd3
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/aai/datasnapshot/DataSnapshot4HistInit.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/main/java/org/onap/aai/datasnapshot/DataSnapshot4HistInit.java b/src/main/java/org/onap/aai/datasnapshot/DataSnapshot4HistInit.java
index 03ff51a..8d250d7 100644
--- a/src/main/java/org/onap/aai/datasnapshot/DataSnapshot4HistInit.java
+++ b/src/main/java/org/onap/aai/datasnapshot/DataSnapshot4HistInit.java
@@ -109,14 +109,6 @@ public class DataSnapshot4HistInit {
*/
public static void main(String[] args) {
- // Set the logging file properties to be used by EELFManager
- System.setProperty("aai.service.name", DataSnapshot4HistInit.class.getSimpleName());
- Properties props = System.getProperties();
- props.setProperty(Configuration.PROPERTY_LOGGING_FILE_NAME, AAIConstants.AAI_LOGBACK_PROPS);
- props.setProperty(Configuration.PROPERTY_LOGGING_FILE_PATH, AAIConstants.AAI_HOME_BUNDLECONFIG);
- LOGGER = LoggerFactory.getLogger(DataSnapshot4HistInit.class);
-
-
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
PropertyPasswordConfiguration initializer = new PropertyPasswordConfiguration();
initializer.initialize(ctx);
@@ -157,6 +149,13 @@ public class DataSnapshot4HistInit {
public boolean executeCommand(String[] args) {
+ // Set the logging file properties to be used by EELFManager
+ System.setProperty("aai.service.name", DataSnapshot4HistInit.class.getSimpleName());
+ Properties props = System.getProperties();
+ props.setProperty(Configuration.PROPERTY_LOGGING_FILE_NAME, AAIConstants.AAI_LOGBACK_PROPS);
+ props.setProperty(Configuration.PROPERTY_LOGGING_FILE_PATH, AAIConstants.AAI_HOME_BUNDLECONFIG);
+ LOGGER = LoggerFactory.getLogger(DataSnapshot4HistInit.class);
+
Boolean dbClearFlag = false;
JanusGraph graph = null;
String command = "UNKNOWN";
@@ -1076,4 +1075,4 @@ public class DataSnapshot4HistInit {
}
-} \ No newline at end of file
+}