@Test
public void testCanHandleArray() throws Throwable {
Clog.setMinPriority(Clog.Priority.VERBOSE);
field = ArrayTestClass.class.getField("emptyDefaultField");
assertThat(underTest.acceptsClass(String[].class), is(true));
optionsObject.put(optionKey, new String[] {"11", "12", "13"});
assertThat(underTest.getArray(field, optionsObject, optionKey), IsArrayContainingInAnyOrder.arrayContainingInAnyOrder("11", "12", "13"));
optionsObject.remove(optionKey);
assertThat(optionsObject.has(optionKey), is(false));
field = ArrayTestClass.class.getField("emptyDefaultField");
assertThat(underTest.getArray(field, optionsObject, optionKey), is(emptyArray()));
}
StringOptionExtractorTest.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:Orchid
作者:
评论列表
文章目录