From e3d011b5eefacad189df2bdc111ff99396bc78ef Mon Sep 17 00:00:00 2001 From: zhangliang Date: Sat, 21 Dec 2024 22:03:35 +0800 Subject: [PATCH] Add StandaloneLockContext and ClusterLockContext --- .../mode/manager/cluster/lock/ClusterLockContextTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/lock/ClusterLockContextTest.java b/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/lock/ClusterLockContextTest.java index f90288b1a3d29..e9c5a39d9a0fd 100644 --- a/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/lock/ClusterLockContextTest.java +++ b/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/lock/ClusterLockContextTest.java @@ -18,7 +18,6 @@ package org.apache.shardingsphere.mode.manager.cluster.lock; import org.apache.shardingsphere.mode.lock.LockPersistService; -import org.apache.shardingsphere.mode.lock.global.GlobalLockContext; import org.apache.shardingsphere.mode.lock.global.GlobalLockDefinition; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -26,7 +25,7 @@ import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; -import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; @@ -56,4 +55,4 @@ void assertUnlock() { lockContext.unlock(lockDefinition); verify(lockPersistService).unlock(lockDefinition); } -} \ No newline at end of file +}