summaryrefslogtreecommitdiff
path: root/dx/src/junit/framework/Protectable.java
diff options
context:
space:
mode:
Diffstat (limited to 'dx/src/junit/framework/Protectable.java')
-rw-r--r--dx/src/junit/framework/Protectable.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/dx/src/junit/framework/Protectable.java b/dx/src/junit/framework/Protectable.java
new file mode 100644
index 0000000..8243555
--- /dev/null
+++ b/dx/src/junit/framework/Protectable.java
@@ -0,0 +1,14 @@
+package junit.framework;
+
+/**
+ * A <em>Protectable</em> can be run and can throw a Throwable.
+ *
+ * @see TestResult
+ */
+public interface Protectable {
+
+ /**
+ * Run the the following method protected.
+ */
+ public abstract void protect() throws Throwable;
+}