Skip to content

Commit

Permalink
GEODE-2590 Fix unit tests related to creating lucene index and chunk …
Browse files Browse the repository at this point in the history
…regions
  • Loading branch information
ladyVader committed Mar 3, 2017
1 parent 24d02a5 commit 4e61799
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ public void createFileRegionWithPartitionShortcutCreatesRegionUsingCreateVMRegio
String regionPath = "regionName";
GemFireCacheImpl cache = Fakes.cache();
RegionAttributes regionAttributes = mock(RegionAttributes.class);
when(regionAttributes.getDataPolicy()).thenReturn(DataPolicy.PARTITION);
PartitionAttributes partitionAttributes = initializeAttributes(cache);
LuceneIndexForPartitionedRegion index =
new LuceneIndexForPartitionedRegion(name, regionPath, cache);
Expand All @@ -310,6 +311,7 @@ public void createChunkRegionWithPartitionShortcutCreatesRegionUsingCreateVMRegi
GemFireCacheImpl cache = Fakes.cache();
PartitionAttributes partitionAttributes = initializeAttributes(cache);
RegionAttributes regionAttributes = mock(RegionAttributes.class);
when(regionAttributes.getDataPolicy()).thenReturn(DataPolicy.PARTITION);
LuceneIndexForPartitionedRegion index =
new LuceneIndexForPartitionedRegion(name, regionPath, cache);
LuceneIndexForPartitionedRegion indexSpy = spy(index);
Expand Down

0 comments on commit 4e61799

Please sign in to comment.