Package com.ibatis.sqlmap.engine.cache

Source Code of com.ibatis.sqlmap.engine.cache.CacheKeyTest

package com.ibatis.sqlmap.engine.cache;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.apache.ibatis.cache.CacheKey;

/**
* CacheKey Tester.
*
* @author <Authors name>
* @version 1.0
* @since <pre>08/29/2006</pre>
*/
public class CacheKeyTest extends TestCase {
  public CacheKeyTest(String name) {
    super(name);
  }

  public void setUp() throws Exception {
    super.setUp();
  }

  public void tearDown() throws Exception {
    super.tearDown();
  }

  public void testUpdate() {
    CacheKey key3 = new CacheKey();

    CacheKey key4 = new CacheKey();

    key3.update("AV");

    key4.update("B7");

    assertTrue(!key3.equals(key4));
    assertTrue(!key3.toString().equals(key4.toString()));

  }

  public static Test suite() {
    return new TestSuite(CacheKeyTest.class);
  }
}
TOP

Related Classes of com.ibatis.sqlmap.engine.cache.CacheKeyTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.