Search in sources :

Example 1 with PersisterBase

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);
}
Also used : PersisterBase(nl.tudelft.watchdog.core.logic.storage.PersisterBase)

Example 2 with PersisterBase

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);
}
Also used : PersisterBase(nl.tudelft.watchdog.core.logic.storage.PersisterBase) PrintWriter(java.io.PrintWriter) Before(org.junit.Before)

Example 3 with PersisterBase

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);
}
Also used : PersisterBase(nl.tudelft.watchdog.core.logic.storage.PersisterBase) PrintWriter(java.io.PrintWriter) Before(org.junit.Before)

Example 4 with PersisterBase

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);
}
Also used : PersisterBase(nl.tudelft.watchdog.core.logic.storage.PersisterBase)

Aggregations

PersisterBase (nl.tudelft.watchdog.core.logic.storage.PersisterBase)4 PrintWriter (java.io.PrintWriter)2 Before (org.junit.Before)2