Issue #273: Changed DB to internal Java data structure to avoid compilation errors + decrease in code coverage

This commit is contained in:
waisuan
2015-10-29 00:57:41 +08:00
parent 9891c2e17b
commit d0f5009996
8 changed files with 55 additions and 12 deletions

View File

@@ -19,7 +19,10 @@ public class AppTest {
*/
@Before
public void setUp() {
AppManager.init();
AppManager.initDB(false); // VirtualDB (instead of MongoDB) was used in running the JUnit tests
// to avoid Maven compilation errors. Set flag to true to run the
// tests with MongoDB (provided that MongoDB is installed and socket
// connection is open).
AppManager.initCacheCapacity(3);
app = new App();
}