package au.id.zancanaro; import au.id.zancanaro.annotations.Property; import org.junit.*; import org.junit.experimental.theories.DataPoint; import org.junit.runner.RunWith; @RunWith(PropertyTestRunner.class) public class PropertyTests { public static Generator gen = Generators.integer(); @Test public void testblah() throws Exception { Assert.assertEquals(10, 11); } @Property 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 aPlusBLessThanOneHundred(int a, int b) { Assert.assertTrue("a plus b is five", a + b == 5); Assert.assertEquals(a + b, 5); } }