Skip to content

Commit f22dba3

Browse files
committed
dlm: test: Switch DistributedLockManagerTest to use Opaque
This will change the test to use the new LockManager Opaque API. Related: #149 Signed-off-by: Christian Kohlschütter <[email protected]>
1 parent e1bcf35 commit f22dba3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dlm/src/test/java/org/dcache/nfs/v4/nlm/DistributedLockManagerTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import java.nio.charset.StandardCharsets;
66
import java.util.Arrays;
77

8+
import org.dcache.nfs.util.Opaque;
89
import org.junit.After;
910
import org.junit.Before;
1011
import org.junit.Test;
@@ -20,12 +21,12 @@ public class DistributedLockManagerTest {
2021
private HazelcastInstance hzClient;
2122
private LockManager lm1;
2223
private LockManager lm2;
23-
private byte[] file1;
24+
private Opaque file1;
2425

2526
@Before
2627
public void setUp() throws Exception {
2728

28-
file1 = "file1".getBytes(StandardCharsets.UTF_8);
29+
file1 = Opaque.forBytes("file1".getBytes(StandardCharsets.UTF_8));
2930

3031
hzSerrver = Hazelcast.newHazelcastInstance();
3132

0 commit comments

Comments
 (0)