diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/au/id/zancanaro/PropertyTests.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/test/java/au/id/zancanaro/PropertyTests.java b/src/test/java/au/id/zancanaro/PropertyTests.java index 0c9bb7e..3620e67 100644 --- a/src/test/java/au/id/zancanaro/PropertyTests.java +++ b/src/test/java/au/id/zancanaro/PropertyTests.java @@ -1,15 +1,28 @@ package au.id.zancanaro; import au.id.zancanaro.annotations.Property; -import au.id.zancanaro.annotations.Seed; import org.junit.Assert; import org.junit.Assume; +import org.junit.experimental.theories.DataPoint; import org.junit.runner.RunWith; @RunWith(PropertyTestRunner.class) public class PropertyTests { @Property - public void method(int a, int b) { + public void aIsNotOdd(int a, int b) { + Assume.assumeFalse(a % 2 == 1); + Assert.assertFalse(a % 2 == 1); + } + + @Property + public void aIsNotLessThanB(int a, int b) { + Assume.assumeFalse(a < b); Assert.assertFalse(a < b); } + + @Property + public void aIsNotGreaterThanB(int a, int b) { +// Assume.assumeFalse(a > b); + Assert.assertFalse(a > b); + } } |