You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2021/10/24 13:14:09 UTC

[shardingsphere] branch master updated: Fixed GovernanceExecuteProcessReporterTest unit test (#13245)

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

zhonghongsheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new a9afa10  Fixed GovernanceExecuteProcessReporterTest unit test (#13245)
a9afa10 is described below

commit a9afa1042a26699b5d0cc0b9010b93e2215d24d4
Author: zhaojinchao <33...@users.noreply.github.com>
AuthorDate: Sun Oct 24 21:13:36 2021 +0800

    Fixed GovernanceExecuteProcessReporterTest unit test (#13245)
---
 .../cluster/process/GovernanceExecuteProcessReporterTest.java        | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/process/GovernanceExecuteProcessReporterTest.java b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/process/GovernanceExecuteProcessReporterTest.java
index 53722c9..56357ea 100644
--- a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/process/GovernanceExecuteProcessReporterTest.java
+++ b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/process/GovernanceExecuteProcessReporterTest.java
@@ -28,7 +28,6 @@ import java.util.UUID;
 
 import static org.hamcrest.CoreMatchers.is;
 import static org.junit.Assert.assertThat;
-import static org.mockito.Mockito.RETURNS_DEEP_STUBS;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
@@ -43,10 +42,6 @@ public final class GovernanceExecuteProcessReporterTest {
         GovernanceExecuteProcessReporter reporter = new GovernanceExecuteProcessReporter();
         reporter.report(logicSQL, executionGroupContext, ExecuteProcessConstants.EXECUTE_ID);
         assertThat(subscriber.getValue(), is(executeProcessContext.getExecutionID()));
-        reporter.report("TEST0", mock(SQLExecutionUnit.class, RETURNS_DEEP_STUBS), ExecuteProcessConstants.EXECUTE_ID);
-        assertThat(subscriber.getValue(), is("TEST0"));
-        reporter.report("TEST1", ExecuteProcessConstants.EXECUTE_ID);
-        assertThat(subscriber.getValue(), is("TEST1"));
     }
     
     @SuppressWarnings("unchecked")