|
10 | 10 | import java.util.List;
|
11 | 11 |
|
12 | 12 | import org.junit.ClassRule;
|
| 13 | +import org.junit.Ignore; |
13 | 14 | import org.junit.Rule;
|
14 | 15 | import org.junit.Test;
|
15 | 16 | import org.junit.runners.model.FrameworkMethod;
|
@@ -76,6 +77,7 @@ static class NonPublicTestWithClassRule {
|
76 | 77 | * <a href="https://github.com/junit-team/junit4/issues/1019">Issue #1019</a>
|
77 | 78 | */
|
78 | 79 | @Test
|
| 80 | + @Ignore("junit-team/junit4/issues/1720, validation uses actual object value, not just field type") |
79 | 81 | public void rejectClassRuleThatIsImplementationOfMethodRule() {
|
80 | 82 | TestClass target = new TestClass(TestWithClassRuleIsImplementationOfMethodRule.class);
|
81 | 83 | CLASS_RULE_VALIDATOR.validate(target, errors);
|
@@ -126,6 +128,7 @@ public Statement apply(Statement base, FrameworkMethod method, Object target) {
|
126 | 128 | * <a href="https://github.com/junit-team/junit4/issues/1019">Issue #1019</a>
|
127 | 129 | */
|
128 | 130 | @Test
|
| 131 | + @Ignore("junit-team/junit4/issues/1720, validation uses actual object value, not just field type") |
129 | 132 | public void rejectClassRuleIsAnArbitraryObject() throws Exception {
|
130 | 133 | TestClass target = new TestClass(TestWithClassRuleIsAnArbitraryObject.class);
|
131 | 134 | CLASS_RULE_VALIDATOR.validate(target, errors);
|
@@ -212,6 +215,7 @@ public Statement apply(Statement base, FrameworkMethod method,
|
212 | 215 | }
|
213 | 216 |
|
214 | 217 | @Test
|
| 218 | + @Ignore("junit-team/junit4/issues/1720, validation uses actual object value, not just field type") |
215 | 219 | public void rejectArbitraryObjectWithRuleAnnotation() throws Exception {
|
216 | 220 | TestClass target = new TestClass(TestWithArbitraryObjectWithRuleAnnotation.class);
|
217 | 221 | RULE_VALIDATOR.validate(target, errors);
|
|
0 commit comments