ch.agent.crnickl.junit
Class T005_CacheTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by ch.agent.crnickl.junit.AbstractTest
              extended by ch.agent.crnickl.junit.T005_CacheTest
All Implemented Interfaces:
junit.framework.Test

public class T005_CacheTest
extends AbstractTest


Constructor Summary
T005_CacheTest()
           
 
Method Summary
protected  void firstSetUp()
          This method is called by setUp() before the first test.
protected  void lastTearDown()
          This method is called by tearDown() after the last test.
 void test1()
          Delete and recreate same chronicle.
 
Methods inherited from class ch.agent.crnickl.junit.AbstractTest
assertException, expectException, getContext, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

T005_CacheTest

public T005_CacheTest()
Method Detail

firstSetUp

protected void firstSetUp()
                   throws Exception
Description copied from class: AbstractTest
This method is called by setUp() before the first test. So if you override setUp, you must call super. By default the method does nothing.

Overrides:
firstSetUp in class AbstractTest
Throws:
Exception

lastTearDown

protected void lastTearDown()
                     throws Exception
Description copied from class: AbstractTest
This method is called by tearDown() after the last test. So if you override tearDown, you must call super. By default the method does nothing.

Overrides:
lastTearDown in class AbstractTest
Throws:
Exception

test1

public void test1()
Delete and recreate same chronicle. A design issue caused the old chronicle to remain in the cache. This was bad from a logic point of view but was good for event logging, which relied on objects existing, except when deleted. So test1 exercised two distinct but mutually exclusive bugs.



Copyright © 2013. All Rights Reserved.