Search in sources :

Example 1 with SimpleExtensionPoint

use of org.apache.geode.internal.cache.extension.SimpleExtensionPoint in project geode by apache.

the class LuceneIndexXmlParserJUnitTest method setUp.

@Before
public void setUp() {
    this.parser = new LuceneXmlParser();
    CacheCreation cache = Mockito.mock(CacheCreation.class);
    RegionCreation regionCreation = Mockito.mock(RegionCreation.class);
    RegionAttributesCreation rac = Mockito.mock(RegionAttributesCreation.class);
    Mockito.when(regionCreation.getFullPath()).thenReturn("/region");
    Mockito.when(regionCreation.getAttributes()).thenReturn(rac);
    Mockito.when(regionCreation.getExtensionPoint()).thenReturn(new SimpleExtensionPoint(this.rc, this.rc));
    this.rc = regionCreation;
    this.stack = new Stack<Object>();
    stack.push(cache);
    stack.push(rc);
    this.parser.setStack(stack);
}
Also used : SimpleExtensionPoint(org.apache.geode.internal.cache.extension.SimpleExtensionPoint) RegionAttributesCreation(org.apache.geode.internal.cache.xmlcache.RegionAttributesCreation) CacheCreation(org.apache.geode.internal.cache.xmlcache.CacheCreation) RegionCreation(org.apache.geode.internal.cache.xmlcache.RegionCreation) Before(org.junit.Before)

Aggregations

SimpleExtensionPoint (org.apache.geode.internal.cache.extension.SimpleExtensionPoint)1 CacheCreation (org.apache.geode.internal.cache.xmlcache.CacheCreation)1 RegionAttributesCreation (org.apache.geode.internal.cache.xmlcache.RegionAttributesCreation)1 RegionCreation (org.apache.geode.internal.cache.xmlcache.RegionCreation)1 Before (org.junit.Before)1