use of org.junit.jupiter.api.BeforeEach in project VocabHunter by VocabHunter.
the class SettingsManagerTest method setUp.
@BeforeEach
public void setUp() throws Exception {
files = new TestFileManager(getClass());
Path settingsFile = files.addFile(SETTINGS_JSON);
dummyPath = files.addFile("dummy");
target = new SettingsManagerImpl(settingsFile);
}
use of org.junit.jupiter.api.BeforeEach in project VocabHunter by VocabHunter.
the class FileToolTest method setUp.
@BeforeEach
public void setUp() throws Exception {
manager = new TestFileManager(getClass());
base = manager.getDirectory();
existingFile = manager.addFile("existingFile");
Files.createFile(existingFile);
newFile = manager.addFile("newFile");
subDirectory = manager.addFile("directory");
Files.createDirectories(subDirectory);
}
use of org.junit.jupiter.api.BeforeEach in project VocabHunter by VocabHunter.
the class SelectionExportToolTest method setUp.
@BeforeEach
public void setUp() throws Exception {
files = new TestFileManager(getClass());
file = files.addFile("export.txt");
}
use of org.junit.jupiter.api.BeforeEach in project VocabHunter by VocabHunter.
the class SessionSerialiserTest method setUp.
@BeforeEach
public void setUp() throws Exception {
files = new TestFileManager(getClass());
file = files.addFile("file.json");
}
use of org.junit.jupiter.api.BeforeEach in project java-design-patterns by iluwatar.
the class MessengerTest method setUp.
/**
* Inject the mocked std-out {@link PrintStream} into the {@link System} class before each test
*/
@BeforeEach
public void setUp() {
this.stdOutBuffer = new ByteArrayOutputStream();
System.setOut(new PrintStream(stdOutBuffer));
}
Aggregations