summaryrefslogtreecommitdiffstats
path: root/datarouter-prov/src/main
diff options
context:
space:
mode:
authoresobmar <mariusz.sobucki@est.tech>2019-03-25 13:22:27 +0000
committeresobmar <mariusz.sobucki@est.tech>2019-03-25 13:22:27 +0000
commit88603b14b8ab6f1a29d4672e01473f84dacf48ca (patch)
tree5c0e6361dcbc8d5b187d372d432a5df23641559d /datarouter-prov/src/main
parent309ff5ef5bf47dd3363c946f909942f773aa94c1 (diff)
UnitTests for LogFileLoader
Change-Id: Ia941feafa211b8c2965120ab48b159c26a550f81 Issue-ID: DMAAP-1105 Signed-off-by: esobmar <mariusz.sobucki@est.tech>
Diffstat (limited to 'datarouter-prov/src/main')
-rw-r--r--datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/utils/LogfileLoader.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/utils/LogfileLoader.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/utils/LogfileLoader.java
index ab1a3a78..af9f8295 100644
--- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/utils/LogfileLoader.java
+++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/utils/LogfileLoader.java
@@ -218,7 +218,7 @@ public class LogfileLoader extends Thread {
}
}
- private boolean pruneRecords() {
+ boolean pruneRecords() {
boolean did1 = false;
long count = countRecords();
long threshold = DEFAULT_LOG_RETENTION;
@@ -282,7 +282,7 @@ public class LogfileLoader extends Thread {
return did1;
}
- private long countRecords() {
+ long countRecords() {
long count = 0;
Connection conn = null;
try {
@@ -303,7 +303,7 @@ public class LogfileLoader extends Thread {
return count;
}
- private Map<Long, Long> getHistogram() {
+ Map<Long, Long> getHistogram() {
Map<Long, Long> map = new HashMap<Long, Long>();
Connection conn = null;
try {
@@ -382,7 +382,7 @@ public class LogfileLoader extends Thread {
}
@SuppressWarnings("resource")
- private int[] process(File f) {
+ int[] process(File f) {
int ok = 0, total = 0;
try {
Connection conn = db.getConnection();
@@ -442,7 +442,7 @@ public class LogfileLoader extends Thread {
return new int[]{ok, total};
}
- private Loadable[] buildRecords(String line) throws ParseException {
+ Loadable[] buildRecords(String line) throws ParseException {
String[] pp = line.split("\\|");
if (pp != null && pp.length >= 7) {
String rtype = pp[1].toUpperCase();
'deletions'>-0/+1 Issue-ID: AAI-1090 Change-Id: Ic5d84689a0aa33a2ba215f9fde4af650bef2d4eb Signed-off-by: Jimmy Forsyth <jf2512@att.com> 2018-04-19Update html file to v13 versionJimmy Forsyth1-1/+1 Issue-ID: AAI-1051 Change-Id: I6a275e9c7d8d94de729821e6ff436dd261ab7947 Signed-off-by: Jimmy Forsyth <jf2512@att.com> 2018-04-19Update swagger file and html to latest versionsJimmy Forsyth12-6640/+6628 Issue-ID: AAI-1051 Change-Id: I3fcced1c8672ad3a7f18be4368c8f3b3b454263a Signed-off-by: Jimmy Forsyth <jf2512@att.com> 2018-03-26Add plugin to check coverageKajur, Harish (vk250x)14-214263/+46911 Get line coverage to 50% and ensure it doesn't go down Issue-ID: AAI-498 Change-Id: Ib466b7e2b7cb6d2f888e3b58c2073bb02ab6f809 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com> 2018-03-22Update the license for 2017-2018 licenseKajur, Harish (vk250x)14-168/+2926 Issue-ID: AAI-856 Change-Id: I6711ff48314133abd7d03ea4b73a4f55606442bb Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com> 2018-03-15Merge "added new aai-schema-ingest library"Venkata Harish Kajur12-130/+1836 2018-03-15added new aai-schema-ingest libraryThreefoot, Jane (jt6620)12-130/+1836 New, lightweight, configurable library for OXM and edge rules json ingest. Allows for broken-up OXM and json for increased model-driven capabilities. Issue-ID: AAI-875 Change-Id: I987c7dc2ad9a68ef3ccaac8da8d3b5b0205dc264 Signed-off-by: Threefoot, Jane (jt6620) <jt6620@att.com> 2018-03-13Testing for HpaCapabilities objectDileep Ranganathan2-10/+14 Fixed Schema - mismatch in the java attributes and xml attributes Added dependentOn for HpaFeatureAtrributes Added unit test for HPASchema Added sample payload for HPACapabilities inside flavor Issue-ID: AAI-742 Change-Id: I3525376886f10bee99aa0ce3f0a6b2a5efbaa9b1 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com> 2018-03-09Merge "Fix dependentOn for hpaCapability node"Venkata Harish Kajur2-10/+10 2018-03-09Fix dependentOn for hpaCapability nodeDileep Ranganathan2-10/+10 Added cloud-region along with flavor in the dependentOn field. Modified hpa-feature-attribute to hpa-feature-attributes as it is an arraylist. Change-Id: I7b0c3ee6e08b3bea97a1ebaeeaa8bcaeb8bb2b00 Issue-ID: AAI-742 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com> 2018-03-08Update the yaml and html for hpaKajur, Harish (vk250x)4-28/+8836 Issue-ID: AAI-838 Change-Id: I2fb543d4e6345faada8ec8fb73ed8ef8f2dd4645 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com> 2018-03-08Hardware Platform Awareness (HPA) - SchemaDileep Ranganathan2-3/+173 Expanding the blob of string to a more generic representation Added new nodes for HPA enablement Change-Id: I3f861934856efbe7d8b08857dadf3c3e9a4baf96 Issue-ID: AAI-742 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com> 2018-03-08Add the generated yaml and html filesKajur, Harish (vk250x)4-8/+258694 Issue-ID: AAI-838 Change-Id: Iad3d92964dc333b3a2f0200b6491c7577493be87 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com> 2018-03-07Add back missed props from oxm from v11Venkata Harish K Kajur2-12/+44 Change-Id: Ia1d5891f5053b0eb1bd4d1e57ff3a85a5f26b5f9 Issue-ID: AAI-838 Signed-off-by: Venkata Harish K Kajur <vk250x@att.com> 2018-02-27Update the files for ajsc 6 changesVenkata Harish K Kajur