MCPcopy Create free account
hub / github.com/akeranen/the-one / setUp

Method setUp

test/SettingsTest.java:48–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 private Settings s;
47
48 protected void setUp() throws Exception {
49 super.setUp();
50 File tempFile = File.createTempFile("settingsTest", ".tmp");
51 tempFile.deleteOnExit();
52
53 PrintWriter out = new PrintWriter(tempFile);
54
55 for (String s : INPUT) {
56 out.println(s);
57 }
58 out.close();
59
60 Settings.init(tempFile.getAbsolutePath());
61 s = new Settings();
62 }
63
64 @Override
65 protected void tearDown() throws Exception {

Callers

nothing calls this directly

Calls 2

initMethod · 0.95
closeMethod · 0.65

Tested by

no test coverage detected