@Before public void setUp() throws Exception { textbuddy = new TextBuddy2(); System.out.println("before :"); TextBuddy2.add(); textFile1 = new File("textfile.txt"); textFile1.createNewFile(); expected = new File("expected.txt"); expected.createNewFile(); TextBuddy2.displayContent("textfile.txt"); }
@After public void tearDown() throws Exception { System.out.println("After :"); TextBuddy2.displayContent("textfile.txt"); TextBuddy2.clearContent(expected, "expected.txt"); }