Created
August 3, 2011 06:42
-
-
Save galderz/1122042 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.infinispan.util.concurrent.locks; | |
| import org.testng.annotations.Test; | |
| /** | |
| * // TODO: Document this | |
| * | |
| * @author Galder Zamarreño | |
| * @since // TODO | |
| */ | |
| @Test(groups = "functional", testName = "util.concurrent.locks.StripedLockTest") | |
| public class StripedLockTest { | |
| public void test000() { | |
| StripedLock stripedLock = new StripedLock(); | |
| String key = "a"; | |
| stripedLock.acquireLock(key, false); | |
| stripedLock.acquireLock(key, true); | |
| stripedLock.releaseLock(key); | |
| System.out.println(stripedLock); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment