org.apache.commons.transaction.memory
Class MapWrapperTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.transaction.memory.MapWrapperTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
OptimisticMapWrapperTest, PessimisticMapWrapperTest

public class MapWrapperTest
extends junit.framework.TestCase

Tests for map wrapper.

Version:
$Id: MapWrapperTest.java 493628 2007-01-07 01:42:48Z joerg $

Field Summary
protected static long BARRIER_TIMEOUT
           
 
Constructor Summary
MapWrapperTest(java.lang.String testName)
           
 
Method Summary
protected static void checkCollection(java.util.Collection col, java.lang.Object[] values)
           
protected  org.apache.commons.transaction.memory.TransactionalMapWrapper getNewWrapper(java.util.Map map)
           
static void main(java.lang.String[] args)
           
protected static void report(java.lang.String should, java.lang.String is)
           
static junit.framework.Test suite()
           
 void testBasic()
           
 void testComplex()
           
 void testContainsKeyWithNullValue()
           
 void testMulti()
           
 void testSets()
           
 void testTxControl()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BARRIER_TIMEOUT

protected static final long BARRIER_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

MapWrapperTest

public MapWrapperTest(java.lang.String testName)
Method Detail

report

protected static void report(java.lang.String should,
                             java.lang.String is)

checkCollection

protected static void checkCollection(java.util.Collection col,
                                      java.lang.Object[] values)

suite

public static junit.framework.Test suite()

main

public static void main(java.lang.String[] args)

getNewWrapper

protected org.apache.commons.transaction.memory.TransactionalMapWrapper getNewWrapper(java.util.Map map)

testBasic

public void testBasic()
               throws java.lang.Throwable
Throws:
java.lang.Throwable

testContainsKeyWithNullValue

public void testContainsKeyWithNullValue()
                                  throws java.lang.Throwable
Throws:
java.lang.Throwable

testComplex

public void testComplex()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable

testSets

public void testSets()
              throws java.lang.Throwable
Throws:
java.lang.Throwable

testMulti

public void testMulti()
               throws java.lang.Throwable
Throws:
java.lang.Throwable

testTxControl

public void testTxControl()
                   throws java.lang.Throwable
Throws:
java.lang.Throwable


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.