aboutsummaryrefslogtreecommitdiff
path: root/test/uk/ac/ox/cs/pagoda/junit/AllTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/junit/AllTests.java')
-rw-r--r--test/uk/ac/ox/cs/pagoda/junit/AllTests.java48
1 files changed, 0 insertions, 48 deletions
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 @@
1package uk.ac.ox.cs.pagoda.junit;
2
3import java.io.BufferedWriter;
4import java.io.FileInputStream;
5import java.io.FileNotFoundException;
6import java.io.FileOutputStream;
7import java.io.IOException;
8import java.io.InputStream;
9import java.io.OutputStream;
10import java.io.OutputStreamWriter;
11
12import org.junit.runner.RunWith;
13import org.junit.runners.Suite;
14import org.junit.runners.Suite.SuiteClasses;
15
16@RunWith(Suite.class)
17@SuiteClasses({ PagodaUOBM.class
18 })
19public class AllTests {
20
21 public static void copy(String source, String dest) {
22 InputStream is = null;
23 OutputStream os = null;
24 try {
25 is = new FileInputStream(source);
26 os = new FileOutputStream(dest);
27 byte[] buffer = new byte[1024];
28 int length;
29 while ((length = is.read(buffer)) > 0) {
30 os.write(buffer, 0, length);
31 }
32 is.close();
33 os.close();
34
35 BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(source)));
36 writer.write("");
37 writer.close();
38 } catch (FileNotFoundException e) {
39 e.printStackTrace();
40 } catch (IOException e) {
41 e.printStackTrace();
42 }
43
44// File src = new File(source);
45// src.delete();
46 }
47
48}