01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.object.lockmanager.api;
06:
07: import junit.framework.TestCase;
08:
09: public class LockIDTest extends TestCase {
10: public void tests() throws Exception {
11: assertTrue(LockLevel.isWrite(LockLevel.WRITE));
12: assertFalse(LockLevel.isRead(LockLevel.WRITE));
13:
14: assertTrue(LockLevel.isWrite(LockLevel.SYNCHRONOUS_WRITE));
15: assertFalse(LockLevel.isRead(LockLevel.SYNCHRONOUS_WRITE));
16:
17: assertFalse(LockLevel.isWrite(LockLevel.READ));
18: assertTrue(LockLevel.isRead(LockLevel.READ));
19:
20: }
21: }
|