Skip to content

Commit 0153c30

Browse files
committed
Make tests more stable by adding test conditions
1 parent 454aece commit 0153c30

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)