use of nl.tudelft.watchdog.core.logic.storage.PersisterBase in project watchdog by TestRoots.
the class EventPersisterTestBase method setUpSuperClass.
/**
* Initializes the variables required for the tests.
*/
protected static void setUpSuperClass() {
PersisterTestBase.setUpSuperClass("EventPersisterTests");
persister = new PersisterBase(copiedDatabase);
}
use of nl.tudelft.watchdog.core.logic.storage.PersisterBase in project watchdog by TestRoots.
the class IntervalPersisterEmptyFileTest method setUpBeforeMethod.
/**
* A database from an empty file is created before every test execution to
* ensure that the database is initialised correctly.
*/
@Before
public void setUpBeforeMethod() throws FileNotFoundException, UnsupportedEncodingException {
PrintWriter writer = new PrintWriter(copiedDatabase, "UTF-8");
writer.println("");
writer.close();
persister = new PersisterBase(copiedDatabase);
}
use of nl.tudelft.watchdog.core.logic.storage.PersisterBase in project watchdog by TestRoots.
the class EventPersisterEmptyFileTest method setUpBeforeMethod.
/**
* A database from an empty file is created before every test execution to
* ensure that the database is initialised correctly.
*/
@Before
public void setUpBeforeMethod() throws FileNotFoundException, UnsupportedEncodingException {
PrintWriter writer = new PrintWriter(copiedDatabase, "UTF-8");
writer.println("");
writer.close();
persister = new PersisterBase(copiedDatabase);
}
use of nl.tudelft.watchdog.core.logic.storage.PersisterBase in project watchdog by TestRoots.
the class IntervalPersisterTestBase method setUpSuperClass.
/**
* Initializes the variables required for the tests.
*/
protected static void setUpSuperClass() {
PersisterTestBase.setUpSuperClass("IntervalPersisterTests");
persister = new PersisterBase(copiedDatabase);
}
Aggregations