MCPcopy Index your code
hub / github.com/apache/tomcat / testCleanDisabled

Method testCleanDisabled

test/org/apache/juli/TestFileHandler.java:112–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

generateLogFilesMethod · 0.95
openMethod · 0.95
closeMethod · 0.95
listMethod · 0.65
getAbsolutePathMethod · 0.45

Tested by

no test coverage detected