Skip to content
Browse files

redesigned AllTests to enable execution of single tests

  • Loading branch information...
1 parent feda035 commit c17c0daa918390afc36eb6bbe702d60a1e884c0d @pavlobaron pavlobaron committed Dec 29, 2010
Showing with 34 additions and 0 deletions.
  1. +34 −0 src/test/java/erjang/AbstractErjangTestCase.java
View
34 src/test/java/erjang/AbstractErjangTestCase.java
@@ -0,0 +1,34 @@
+package erjang;
+
+import java.io.File;
+
+import junit.framework.TestCase;
+
+/**
+ * Abstract class for Erjang JUnit test cases
+ *
+ * @author Pavlo Baron <pb@pbit.org>
+ *
+ */
+public abstract class AbstractErjangTestCase extends TestCase {
+
+ protected File file;
+
+ public AbstractErjangTestCase() {
+ }
+
+ public AbstractErjangTestCase(File file) {
+ super(file.getName());
+ this.file = file;
+ }
+
+ public AbstractErjangTestCase(String name) {
+ super(name);
+ }
+
+ public void setFile(File file) {
+ this.file = file;
+ }
+
+ //abstract public void
+}

0 comments on commit c17c0da

Please sign in to comment.
Something went wrong with that request. Please try again.