java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.RuntimeCollective.webapps.RuntimeTestCase
com.RuntimeCollective.webapps.test.WebappsTestCase
com.RuntimeCollective.webapps.test.LazyEBListTest
- All Implemented Interfaces:
- junit.framework.Test
- public class LazyEBListTest
- extends WebappsTestCase
Tests correct behaviour on all methods of LazyEBList.
These tests could be extended to check that the LazyEBList
fails correctly when given bad input.
| Fields inherited from class junit.framework.TestCase |
|
| Methods inherited from class com.RuntimeCollective.webapps.test.WebappsTestCase |
checkBeanStore, getBeanNames, getNameId, getStoreClassForBeanName, initialiseBeanStore, initMailSession, initUserGroups, printBeanStoreClasses, registerBeanClass, registerBeanClass, resetBeanRegister, testCheckEntityBeanStoreValid |
| 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 |
ebs
protected com.RuntimeCollective.webapps.EntityBeanStore ebs
cache
protected com.RuntimeCollective.webapps.Cache cache
ids
protected java.util.List ids
ebClassName
protected java.lang.String ebClassName
- Classname of the EntityBeans returned by getEBList.
LazyEBListTest
public LazyEBListTest(java.lang.String name)
setUp
protected void setUp()
- Description copied from class:
WebappsTestCase
- This has been copied over from the theseus test cases, and will
be updated to use the RuntimeTestCase init routines shortly
- Overrides:
setUp in class WebappsTestCase
tearDown
protected void tearDown()
- Description copied from class:
junit.framework.TestCase
- Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.
- Overrides:
tearDown in class WebappsTestCase
ivSetup
protected void ivSetup()
ivTearDown
protected void ivTearDown()
registerCustomBeans
protected void registerCustomBeans()
getEBList
protected java.util.List getEBList()
throws java.sql.SQLException
- Get a List of EntityBean Integer ids to play with (Users, by convention)
getCacheForEB
protected com.RuntimeCollective.webapps.Cache getCacheForEB()
throws java.sql.SQLException
- Get the EBS cache for the EBs we're playing with (Users, by convention)
checkEmptyCache
public void checkEmptyCache()
- Returns true iff the cache is empty
getLazyList
protected java.util.List getLazyList()
- Get the LazyList, clearing the cache before
testEBSize
public void testEBSize()
testSize
public void testSize()
testIsEmpty
public void testIsEmpty()
testContains
public void testContains()
testToArray
public void testToArray()
testRemoveByObject
public void testRemoveByObject()
testRemoveById
public void testRemoveById()
testRemoveAll
public void testRemoveAll()
testIterator
public void testIterator()
testContainsAll
public void testContainsAll()
testAddAll
public void testAddAll()
testRetainAll
public void testRetainAll()
testClear
public void testClear()
testEquals
public void testEquals()
testHashCode
public void testHashCode()
testGet
public void testGet()
testSet
public void testSet()
testAdd
public void testAdd()
testAddWithPosition
public void testAddWithPosition()
testIndexOf
public void testIndexOf()
testLastIndexOf
public void testLastIndexOf()
testListIterator
public void testListIterator()
testSubList
public void testSubList()
testSubListClear
public void testSubListClear()
main
public static void main(java.lang.String[] args)
- Description copied from class:
com.RuntimeCollective.webapps.RuntimeTestCase
- RuntimeTestCase is a basic TestCase, which sets up 2 database in RuntimeDataSource and RuntimeParameters.
In each module, it should be extended into a ModuleTestCase.
The ModuleTestCase will add module-specific RuntimeParameters, and register the required beans.
Finally, each module will define one or many actual test cases, by extending ModuleTestCase.
Example:
- com.RuntimeCollective.content.test.ContentTestCase implements com.RuntimeCollective.webapps.RuntimeTestCase
- com.RuntimeCollective.content.test.FileTest implements com.RuntimeCollective.content.test.ContentTestCase
- com.RuntimeCollective.content.test.ImageTest implements com.RuntimeCollective.content.test.ContentTestCase