summaryrefslogtreecommitdiff
path: root/src/test/java/au/id/zancanaro/TheoriesTest.java
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@zancanaro.id.au>2015-05-31 16:48:45 +1000
committerCarlo Zancanaro <carlo@zancanaro.id.au>2015-05-31 16:48:45 +1000
commit199037f9c80afd885f1f536d91b40a8397cd6bf2 (patch)
tree2153d808dde4d3b7d5473ba313642ee42d1190b5 /src/test/java/au/id/zancanaro/TheoriesTest.java
parentc25450f6288748782ad60cc7c4b8e0e0bdc52c1c (diff)
Improve lots of things
In particular: + make output more sane and less all over the place + just ignore original exception, the shrunk one is the only one which really matters + fit into the jUnit framework more (so now @Before, @After and stuff work)
Diffstat (limited to 'src/test/java/au/id/zancanaro/TheoriesTest.java')
-rw-r--r--src/test/java/au/id/zancanaro/TheoriesTest.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/java/au/id/zancanaro/TheoriesTest.java b/src/test/java/au/id/zancanaro/TheoriesTest.java
new file mode 100644
index 0000000..7d5071c
--- /dev/null
+++ b/src/test/java/au/id/zancanaro/TheoriesTest.java
@@ -0,0 +1,22 @@
+package au.id.zancanaro;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.experimental.theories.DataPoint;
+import org.junit.experimental.theories.Theories;
+import org.junit.experimental.theories.Theory;
+import org.junit.runner.RunWith;
+
+@RunWith(Theories.class)
+public class TheoriesTest {
+ @DataPoint
+ public static String car = "carlo";
+
+ @DataPoint
+ public static String car2 = "carlo2";
+
+ @Theory
+ public void testName(String str) throws Exception {
+ Assert.assertEquals(str, car2);
+ }
+}