Skip to content

Commit 7459cad

Browse files
authored
Merge pull request #1833 from testfixer/org.apache.ibatis.reflection.ReflectorTest
Make tests more stable by adding a test condition
2 parents ea8182c + 0174cf6 commit 7459cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/apache/ibatis/reflection/ReflectorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public void setProp2(boolean arg) {}
212212
assertNotNull(reflector.getSetInvoker("prop1"));
213213

214214
Class<?> paramType = reflector.getSetterType("prop2");
215-
assertTrue(String.class.equals(paramType) || Integer.class.equals(paramType));
215+
assertTrue(String.class.equals(paramType) || Integer.class.equals(paramType) || boolean.class.equals(paramType));
216216

217217
Invoker ambiguousInvoker = reflector.getSetInvoker("prop2");
218218
Object[] param = String.class.equals(paramType)? new String[]{"x"} : new Integer[]{1};

0 commit comments

Comments
 (0)