From f2909a748a300f94cf6067fc84416e408d3e6de8 Mon Sep 17 00:00:00 2001 From: RncLsn Date: Wed, 6 May 2015 18:11:08 +0100 Subject: Switch from JUnit to TestNG. Plus minor fixes. --- test/uk/ac/ox/cs/pagoda/junit/AllTests.java | 48 ----------------------------- 1 file changed, 48 deletions(-) delete mode 100644 test/uk/ac/ox/cs/pagoda/junit/AllTests.java (limited to 'test/uk/ac/ox/cs/pagoda/junit/AllTests.java') diff --git a/test/uk/ac/ox/cs/pagoda/junit/AllTests.java b/test/uk/ac/ox/cs/pagoda/junit/AllTests.java deleted file mode 100644 index fb38787..0000000 --- a/test/uk/ac/ox/cs/pagoda/junit/AllTests.java +++ /dev/null @@ -1,48 +0,0 @@ -package uk.ac.ox.cs.pagoda.junit; - -import java.io.BufferedWriter; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.io.OutputStreamWriter; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; -import org.junit.runners.Suite.SuiteClasses; - -@RunWith(Suite.class) -@SuiteClasses({ PagodaUOBM.class - }) -public class AllTests { - - public static void copy(String source, String dest) { - InputStream is = null; - OutputStream os = null; - try { - is = new FileInputStream(source); - os = new FileOutputStream(dest); - byte[] buffer = new byte[1024]; - int length; - while ((length = is.read(buffer)) > 0) { - os.write(buffer, 0, length); - } - is.close(); - os.close(); - - BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(source))); - writer.write(""); - writer.close(); - } catch (FileNotFoundException e) { - e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } - -// File src = new File(source); -// src.delete(); - } - -} -- cgit v1.2.3