You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by zh...@apache.org on 2018/12/11 19:22:32 UTC
[geode] 01/01: GEODE-6143: remove PowerMock from
UnregisterInterestTest
This is an automated email from the ASF dual-hosted git repository.
zhouxj pushed a commit to branch feature/GEODE-6143-4
in repository https://gitbox.apache.org/repos/asf/geode.git
commit 7ea829401bc9b764d984b7d594a28ad980b1f0ac
Author: zhouxh <gz...@pivotal.io>
AuthorDate: Tue Dec 11 11:21:39 2018 -0800
GEODE-6143: remove PowerMock from UnregisterInterestTest
---
.../cache/tier/sockets/command/UnregisterInterestTest.java | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/geode-core/src/test/java/org/apache/geode/internal/cache/tier/sockets/command/UnregisterInterestTest.java b/geode-core/src/test/java/org/apache/geode/internal/cache/tier/sockets/command/UnregisterInterestTest.java
index c27175d..02ac078 100644
--- a/geode-core/src/test/java/org/apache/geode/internal/cache/tier/sockets/command/UnregisterInterestTest.java
+++ b/geode-core/src/test/java/org/apache/geode/internal/cache/tier/sockets/command/UnregisterInterestTest.java
@@ -26,15 +26,9 @@ import static org.mockito.Mockito.when;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
-import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
-import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
-import org.powermock.api.mockito.PowerMockito;
-import org.powermock.core.classloader.annotations.PowerMockIgnore;
-import org.powermock.core.classloader.annotations.PrepareForTest;
-import org.powermock.modules.junit4.PowerMockRunner;
import org.apache.geode.CancelCriterion;
import org.apache.geode.cache.operations.UnregisterInterestOperationContext;
@@ -55,9 +49,6 @@ import org.apache.geode.security.ResourcePermission.Operation;
import org.apache.geode.security.ResourcePermission.Resource;
import org.apache.geode.test.junit.categories.ClientServerTest;
-@RunWith(PowerMockRunner.class)
-@PowerMockIgnore({"*.UnitTest"})
-@PrepareForTest({CacheClientNotifier.class})
@Category({ClientServerTest.class})
public class UnregisterInterestTest {
@@ -145,8 +136,6 @@ public class UnregisterInterestTest {
when(this.unregisterInterestOperationContext.getKey()).thenReturn(KEY);
CacheClientNotifier ccn = mock(CacheClientNotifier.class);
- PowerMockito.mockStatic(CacheClientNotifier.class, Mockito.CALLS_REAL_METHODS);
- PowerMockito.when(CacheClientNotifier.getInstance()).thenReturn(ccn);
when(this.acceptor.getCacheClientNotifier()).thenReturn(ccn);
}