Permalink
Browse files

add infinitest.filters, fix discrepancy in tests between test class r…

…un and test class iterations asserted
  • Loading branch information...
1 parent 9cddcf2 commit 962f7bac5ff4a6ff04facc5c1b71aab5b34e6710 @pholser committed Oct 31, 2010
View
1 infinitest.filters
@@ -0,0 +1 @@
+.*\$.*
View
6 src/test/java/com/pholser/junit/parameters/MarkingTheoryParametersAsForAllTest.java
@@ -87,7 +87,7 @@ public void shouldFeedDefaultNumberOfBooleansWrappersToAMarkedBooleanWrapperPara
JUnitCore.runClasses(ForDefaultNumberOfBooleanWrappers.class);
assertEquals(ForAll.class.getMethod("sampleSize").getDefaultValue(),
- ForDefaultNumberOfBooleans.iterations);
+ ForDefaultNumberOfBooleanWrappers.iterations);
}
@RunWith(Theories.class)
@@ -119,9 +119,9 @@ public void shouldHold(@ForAll String s) {
@Test
public void shouldAllowDifferentNumberOfRandomValuesOnAMarkedParameter() {
- JUnitCore.runClasses(ForDefaultNumberOfStrings.class);
+ JUnitCore.runClasses(ForSpecifiedNumberOfStrings.class);
- assertEquals(200, ForDefaultNumberOfStrings.iterations);
+ assertEquals(200, ForSpecifiedNumberOfStrings.iterations);
}
@RunWith(Theories.class)

0 comments on commit 962f7ba

Please sign in to comment.