()
| 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 { |