aboutsummaryrefslogtreecommitdiffstats
path: root/datarouter-prov/src/main/java/org/onap
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/java/org/onap
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/java/org/onap')
-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();