From 1b0565b1f6b4d5009da689ba5d486bce203e4905 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Tue, 7 Jul 2015 00:02:23 +1000 Subject: Run less tests (to make them faster) --- .../java/au/id/zancanaro/javacheck/OptionalFunctorRulesTest.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/test/java/au/id/zancanaro/javacheck/OptionalFunctorRulesTest.java') diff --git a/src/test/java/au/id/zancanaro/javacheck/OptionalFunctorRulesTest.java b/src/test/java/au/id/zancanaro/javacheck/OptionalFunctorRulesTest.java index b13fb8b..5ef552e 100644 --- a/src/test/java/au/id/zancanaro/javacheck/OptionalFunctorRulesTest.java +++ b/src/test/java/au/id/zancanaro/javacheck/OptionalFunctorRulesTest.java @@ -16,9 +16,6 @@ import static org.junit.Assert.assertEquals; @RunWith(Properties.class) public class OptionalFunctorRulesTest { - private final static int runs = 1000; - private final static int maxSize = 1000; - @DataSource public static Generator> listOfIntegers = oneOf( pure(Optional.empty()), @@ -31,7 +28,7 @@ public class OptionalFunctorRulesTest { integer().map(OptionalFunctorRulesTest::timesI), integer().map(OptionalFunctorRulesTest::constantlyI)); - @Property(maxSize = maxSize, runs = runs) + @Property public void mappingCompositionsWithStreams( Optional optional, Function f, @@ -46,7 +43,7 @@ public class OptionalFunctorRulesTest { assertEquals(left, right); } - @Property(maxSize = maxSize, runs = runs) + @Property public void mappingCompositionsWithIntermediateList( Optional optional, Function f, @@ -60,7 +57,7 @@ public class OptionalFunctorRulesTest { assertEquals(left, right); } - @Property(maxSize = maxSize, runs = runs) + @Property public void mapIdentityIsIdentity(Optional optional) { Optional mapped = optional.map(x -> x); -- cgit v1.2.3