From 28ec863c2ae3d6664e6c6e539f17c8d6de7a03cd Mon Sep 17 00:00:00 2001
From: zhuoyao FENG <zhuoyaof@student.unimelb.edu.au>
Date: Tue, 4 Sep 2018 14:45:14 +1000
Subject: [PATCH] assignment1

---
 test/swen90006/machine/BoundaryTests.java     | 23 -----------------
 test/swen90006/machine/PartitioningTests.java | 25 -------------------
 2 files changed, 48 deletions(-)

diff --git a/test/swen90006/machine/BoundaryTests.java b/test/swen90006/machine/BoundaryTests.java
index 0a1a392..b92a05e 100755
--- a/test/swen90006/machine/BoundaryTests.java
+++ b/test/swen90006/machine/BoundaryTests.java
@@ -574,27 +574,4 @@ public class BoundaryTests {
         Machine m = new Machine();
         return m.execute(lines);
     }
-
-    //To test an exception, specify the expected exception after the @Test
-    @Test(expected = java.io.IOException.class)
-    public void anExceptionTest()
-            throws Throwable {
-        throw new java.io.IOException();
-    }
-
-
-    //Read in a file containing a program and convert into a list of
-    //string instructions
-    private List<String> readInstructions(String file) {
-        Charset charset = Charset.forName("UTF-8");
-        List<String> lines = null;
-        try {
-            lines = Files.readAllLines(FileSystems.getDefault().getPath(file), charset);
-        } catch (Exception e) {
-            System.err.println("Invalid input file! (stacktrace follows)");
-            e.printStackTrace(System.err);
-            System.exit(1);
-        }
-        return lines;
-    }
 }
\ No newline at end of file
diff --git a/test/swen90006/machine/PartitioningTests.java b/test/swen90006/machine/PartitioningTests.java
index 60618f4..417ad6e 100755
--- a/test/swen90006/machine/PartitioningTests.java
+++ b/test/swen90006/machine/PartitioningTests.java
@@ -482,29 +482,4 @@ public class PartitioningTests {
         return m.execute(lines);
     }
 
-    //To test an exception, specify the expected exception after the @Test
-    @Test(expected = java.io.IOException.class)
-    public void anExceptionTest()
-            throws Throwable
-    {
-        throw new java.io.IOException();
-    }
-
-
-    //Read in a file containing a program and convert into a list of
-    //string instructions
-    private List<String> readInstructions(String file)
-    {
-        Charset charset = Charset.forName("UTF-8");
-        List<String> lines = null;
-        try {
-            lines = Files.readAllLines(FileSystems.getDefault().getPath(file), charset);
-        }
-        catch (Exception e){
-            System.err.println("Invalid input file! (stacktrace follows)");
-            e.printStackTrace(System.err);
-            System.exit(1);
-        }
-        return lines;
-    }
 }
\ No newline at end of file
-- 
GitLab