This is an automated email from the ASF dual-hosted git repository.

eshu11 pushed a commit to branch feature/GEODE-6497
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/feature/GEODE-6497 by this 
push:
     new d26e3db  fix a test to use the correct methods.
d26e3db is described below

commit d26e3db65650cba53f887d670f95131345e586c8
Author: eshu <[email protected]>
AuthorDate: Thu Mar 7 16:54:12 2019 -0800

    fix a test to use the correct methods.
---
 .../org/apache/geode/internal/cache/InitialImageOperationTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/geode-core/src/test/java/org/apache/geode/internal/cache/InitialImageOperationTest.java
 
b/geode-core/src/test/java/org/apache/geode/internal/cache/InitialImageOperationTest.java
index 8320e5c..64a09bb 100644
--- 
a/geode-core/src/test/java/org/apache/geode/internal/cache/InitialImageOperationTest.java
+++ 
b/geode-core/src/test/java/org/apache/geode/internal/cache/InitialImageOperationTest.java
@@ -43,8 +43,8 @@ public class InitialImageOperationTest {
     dm = mock(ClusterDistributionManager.class);
     region = mock(LocalRegion.class);
 
-    when(dm.getCache()).thenReturn(cache);
-    when(cache.getRegionByPath(path)).thenReturn(region);
+    when(dm.getExistingCache()).thenReturn(cache);
+    when(cache.getRegion(path)).thenReturn(region);
     when(region.isInitialized()).thenReturn(true);
     when(region.getScope()).thenReturn(Scope.DISTRIBUTED_ACK);
   }

Reply via email to