List of usage examples for org.apache.commons.collections IteratorUtils EMPTY_LIST_ITERATOR
ResettableListIterator EMPTY_LIST_ITERATOR
To view the source code for org.apache.commons.collections IteratorUtils EMPTY_LIST_ITERATOR.
Click Source Link
From source file:com.adobe.acs.commons.util.visitors.ContentVisitorTest.java
@Before public void setUp() throws Exception { when(resource.getValueMap()).thenReturn(properties); when(resource.listChildren()).thenReturn(IteratorUtils.EMPTY_LIST_ITERATOR); }
From source file:com.adobe.acs.commons.oak.impl.EnsureOakIndexJobHandlerTest.java
Resource getEnsureOakDefinition(Map<String, Object> properties) {
Resource r = mock(Resource.class);
ValueMap vm = new MockValueMap(r, properties);
when(r.getValueMap()).thenReturn(vm);
when(r.adaptTo(ModifiableValueMap.class)).thenReturn(new ModifiableValueMapDecorator(properties));
when(r.getName()).thenReturn(INDEX_NAME);
when(r.getPath()).thenReturn(DEFINITION_PATH);
when(r.listChildren()).thenReturn(IteratorUtils.EMPTY_LIST_ITERATOR);
return r;//from w w w . j a va2s . c om
}
From source file:com.adobe.acs.commons.oak.impl.EnsureOakIndexJobHandlerTest.java
Resource getOakDefinition(Map<String, Object> properties) {
Resource r = mock(Resource.class);
ValueMap vm = new MockValueMap(r, properties);
when(r.adaptTo(ModifiableValueMap.class)).thenReturn(new ModifiableValueMapDecorator(properties));
when(r.getValueMap()).thenReturn(vm);
when(r.getName()).thenReturn(INDEX_NAME);
when(r.getPath()).thenReturn(OAK_INDEX + "/" + INDEX_NAME);
when(r.listChildren()).thenReturn(IteratorUtils.EMPTY_LIST_ITERATOR);
return r;//from w w w . j ava 2 s. c o m
}