()
| 110 | } |
| 111 | |
| 112 | @Test |
| 113 | public void testCleanDisabled() throws Exception { |
| 114 | generateLogFiles(logsDir, PREFIX_1, SUFFIX_1, 3); |
| 115 | |
| 116 | FileHandler fh1 = new FileHandler(logsDir.getAbsolutePath(), PREFIX_1, SUFFIX_1, null); |
| 117 | fh1.open(); |
| 118 | |
| 119 | Thread.sleep(1000); |
| 120 | |
| 121 | Assert.assertTrue(logsDir.list().length == 17); |
| 122 | |
| 123 | fh1.close(); |
| 124 | } |
| 125 | |
| 126 | private void generateLogFiles(File dir, String prefix, String suffix, int amount) |
| 127 | throws IOException { |
nothing calls this directly
no test coverage detected