You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by la...@apache.org on 2017/03/03 23:03:27 UTC
[2/2] geode git commit: GEODE-2590 Fix unit tests related to creating
lucene index and chunk regions
GEODE-2590 Fix unit tests related to creating lucene index and chunk regions
Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/4e61799f
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/4e61799f
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/4e61799f
Branch: refs/heads/develop
Commit: 4e61799f918d47340ddb0ecbcf89aaf715723d95
Parents: 24d02a5
Author: Lynn Hughes-Godfrey <lh...@pivotal.io>
Authored: Fri Mar 3 14:03:46 2017 -0800
Committer: Lynn Hughes-Godfrey <lh...@pivotal.io>
Committed: Fri Mar 3 14:03:46 2017 -0800
----------------------------------------------------------------------
.../cache/lucene/internal/LuceneIndexForPartitionedRegionTest.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/geode/blob/4e61799f/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/LuceneIndexForPartitionedRegionTest.java
----------------------------------------------------------------------
diff --git a/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/LuceneIndexForPartitionedRegionTest.java b/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/LuceneIndexForPartitionedRegionTest.java
index 15235eb..93cc0a8 100644
--- a/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/LuceneIndexForPartitionedRegionTest.java
+++ b/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/LuceneIndexForPartitionedRegionTest.java
@@ -290,6 +290,7 @@ public class LuceneIndexForPartitionedRegionTest {
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);
@@ -310,6 +311,7 @@ public class LuceneIndexForPartitionedRegionTest {
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);