org.apache.myfaces.trinidad.model
Class RowKeySetImplTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.shale.test.base.AbstractJsfTestCase
              extended by org.apache.myfaces.trinidad.model.RowKeySetImplTest
All Implemented Interfaces:
junit.framework.Test

public final class RowKeySetImplTest
extends org.apache.shale.test.base.AbstractJsfTestCase

Test for the RowKeySetImpl class. There is a hardcoded dependency between this test and the SortableModel implementation that happens to be used by ModelUtils.toCollectionModel().


Field Summary
 
Fields inherited from class org.apache.shale.test.base.AbstractJsfTestCase
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session
 
Constructor Summary
RowKeySetImplTest(String testName)
           
 
Method Summary
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testAddAll()
           
 void testAddRemove()
           
 void testAddRemoveAllWithInfiniteSet()
           
 void testAddRemoveAllWithSimpleSet()
           
 void testAddRemoveNoModel()
           
 void testClear()
           
 void testClone()
           
 void testGetRowKeyIterator()
           
 void testInitialAddAll()
           
 void testInitialyEmpty()
           
 void testInvert()
           
 void testInvertAll()
           
 void testInvertAllRowKeyIterator()
           
 void testSerialization()
           
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RowKeySetImplTest

public RowKeySetImplTest(String testName)
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class org.apache.shale.test.base.AbstractJsfTestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class org.apache.shale.test.base.AbstractJsfTestCase
Throws:
Exception

suite

public static junit.framework.Test suite()

testInitialyEmpty

public void testInitialyEmpty()

testInitialAddAll

public void testInitialAddAll()

testAddAll

public void testAddAll()

testAddRemoveAllWithSimpleSet

public void testAddRemoveAllWithSimpleSet()

testAddRemoveAllWithInfiniteSet

public void testAddRemoveAllWithInfiniteSet()
                                     throws CloneNotSupportedException
Throws:
CloneNotSupportedException

testClear

public void testClear()

testAddRemove

public void testAddRemove()

testAddRemoveNoModel

public void testAddRemoveNoModel()

testInvert

public void testInvert()

testInvertAll

public void testInvertAll()

testSerialization

public void testSerialization()
                       throws IOException,
                              ClassNotFoundException
Throws:
IOException
ClassNotFoundException

testGetRowKeyIterator

public void testGetRowKeyIterator()

testInvertAllRowKeyIterator

public void testInvertAllRowKeyIterator()

testClone

public void testClone()
               throws CloneNotSupportedException
Throws:
CloneNotSupportedException


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.