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 2024/05/01 05:18:58 UTC
(shardingsphere) branch master updated: Revise AlterGlobalClockRuleExecutorTest (#31090)
This is an automated email from the ASF dual-hosted git repository.
zhaojinchao 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 5b33656586d Revise AlterGlobalClockRuleExecutorTest (#31090)
5b33656586d is described below
commit 5b33656586dda31ffef348a9391c412380f8f9f7
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Wed May 1 13:18:51 2024 +0800
Revise AlterGlobalClockRuleExecutorTest (#31090)
---
.../distsql/handler/update/AlterGlobalClockRuleExecutorTest.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel/global-clock/distsql/handler/src/test/java/org/apache/shardingsphere/globalclock/distsql/handler/update/AlterGlobalClockRuleExecutorTest.java b/kernel/global-clock/distsql/handler/src/test/java/org/apache/shardingsphere/globalclock/distsql/handler/update/AlterGlobalClockRuleExecutorTest.java
index 143c27bad2e..10a4a26fc8a 100644
--- a/kernel/global-clock/distsql/handler/src/test/java/org/apache/shardingsphere/globalclock/distsql/handler/update/AlterGlobalClockRuleExecutorTest.java
+++ b/kernel/global-clock/distsql/handler/src/test/java/org/apache/shardingsphere/globalclock/distsql/handler/update/AlterGlobalClockRuleExecutorTest.java
@@ -27,7 +27,6 @@ import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@@ -46,8 +45,8 @@ class AlterGlobalClockRuleExecutorTest {
assertThat(actual.getProvider(), is("redis"));
assertTrue(actual.isEnabled());
assertThat(actual.getProps().size(), is(1));
- assertEquals(GlobalClockRule.class, executor.getRuleClass());
- assertEquals(AlterGlobalClockRuleStatement.class, executor.getType());
+ assertThat(executor.getRuleClass(), is(GlobalClockRule.class));
+ assertThat(executor.getType(), is(AlterGlobalClockRuleStatement.class));
}
private GlobalClockRuleConfiguration getSQLParserRuleConfiguration() {