fixed test cases

This commit is contained in:
Jeremy Long
2017-05-05 15:17:39 -04:00
parent 55bfe4cad8
commit 5681e0bfdf
4 changed files with 19 additions and 5 deletions

View File

@@ -230,6 +230,16 @@ public final class CveDB implements AutoCloseable {
}
}
/**
* Method added for testing, returns the current usage count of the CveDB
* singleton.
*
* @return the current usage of the CveDB singleton
*/
protected synchronized int getUsageCount() {
return usageCount;
}
/**
* Opens the database connection. If the database does not exist, it will
* create a new one.