KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > config > LockTypeTest


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

5 package com.tc.object.config;
6
7 import junit.framework.TestCase;
8
9 public class LockTypeTest extends TestCase {
10
11   public void testLockTypeByName() {
12     assertSame(ConfigLockLevel.WRITE, ConfigLockLevel.lockLevelByName(ConfigLockLevel.WRITE_NAME));
13     assertSame(ConfigLockLevel.READ, ConfigLockLevel.lockLevelByName(ConfigLockLevel.READ_NAME));
14     assertSame(ConfigLockLevel.SYNCHRONOUS_WRITE, ConfigLockLevel
15         .lockLevelByName(ConfigLockLevel.SYNCHRONOUS_WRITE_NAME));
16   }
17
18 }
19
Popular Tags