File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/io/output Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 */
1717package org .apache .commons .io .output ;
1818
19+ import static org .apache .commons .io .testtools .TestUtils .checkFile ;
20+ import static org .junit .Assert .assertFalse ;
21+ import static org .junit .Assert .assertTrue ;
22+ import static org .junit .Assert .fail ;
23+
1924import java .io .File ;
2025import java .io .FileOutputStream ;
2126import java .io .FileWriter ;
2732
2833import org .apache .commons .io .FileUtils ;
2934import org .apache .commons .io .IOUtils ;
30- import org .apache .commons .io .testtools .FileBasedTestCase ;
3135import org .junit .After ;
3236import org .junit .Before ;
37+ import org .junit .Rule ;
3338import org .junit .Test ;
34-
35- import static org .apache .commons .io .testtools .TestUtils .checkFile ;
36- import static org .junit .Assert .assertFalse ;
37- import static org .junit .Assert .assertTrue ;
38- import static org .junit .Assert .fail ;
39+ import org .junit .rules .TemporaryFolder ;
3940
4041/**
4142 * Tests that the encoding is actually set and used.
4243 *
4344 */
44- public class FileWriterWithEncodingTest extends FileBasedTestCase {
45+ public class FileWriterWithEncodingTest {
46+
47+ @ Rule
48+ public TemporaryFolder temporaryFolder = new TemporaryFolder ();
49+
50+ private File getTestDirectory () {
51+ return temporaryFolder .getRoot ();
52+ }
4553
4654 private String defaultEncoding ;
4755 private File file1 ;
You can’t perform that action at this time.
0 commit comments