Skip to content

Commit

Permalink
Add StandaloneLockContext and ClusterLockContext
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Dec 21, 2024
1 parent 61ab971 commit e3d011b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
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;
import org.junit.jupiter.api.extension.ExtendWith;
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;

Expand Down Expand Up @@ -56,4 +55,4 @@ void assertUnlock() {
lockContext.unlock(lockDefinition);
verify(lockPersistService).unlock(lockDefinition);
}
}
}

0 comments on commit e3d011b

Please sign in to comment.