fix ci failed issue

This commit is contained in:
ascrutae 2017-04-27 16:58:24 +08:00
parent 24010d134b
commit 73401d1077
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ public class AbstractPostTestCase {
@Before
public void init() {
ClusterWorkerContext clusterWorkerContext = mock(ClusterWorkerContext.class);
LocalWorkerContext localWorkerContext = mock(LocalWorkerContext.class);
ClusterWorkerContext clusterWorkerContext = PowerMockito.mock(ClusterWorkerContext.class);
LocalWorkerContext localWorkerContext = PowerMockito.mock(LocalWorkerContext.class);
post = spy(new TestAbstractPost(TestAbstractPost.WorkerRole.INSTANCE, clusterWorkerContext, localWorkerContext));
}