LockTypeTest.java :  » Net » Terracotta » com » tc » object » config » Java Open Source

Java Open Source » Net » Terracotta 
Terracotta » com » tc » object » config » LockTypeTest.java
/*
 * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
 * notice. All rights reserved.
 */
package com.tc.object.config;

import junit.framework.TestCase;

public class LockTypeTest extends TestCase {

  public void testLockTypeByName() {
    assertSame(ConfigLockLevel.WRITE, ConfigLockLevel.lockLevelByName(ConfigLockLevel.WRITE_NAME));
    assertSame(ConfigLockLevel.READ, ConfigLockLevel.lockLevelByName(ConfigLockLevel.READ_NAME));
    assertSame(ConfigLockLevel.SYNCHRONOUS_WRITE, ConfigLockLevel
        .lockLevelByName(ConfigLockLevel.SYNCHRONOUS_WRITE_NAME));
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.