blob: 3620e67eca9a4e683da43c4432cdd5cd610711e6 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package au.id.zancanaro;
import au.id.zancanaro.annotations.Property;
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 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);
}
}
|