|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.beanutils.TestBeanHelper
public class TestBeanHelper
Test class for BeanHelper.
Nested Class Summary | |
---|---|
static class |
TestBeanHelper.TestBean
A simple bean class used for testing creation operations. |
Constructor Summary | |
---|---|
TestBeanHelper()
|
Method Summary | |
---|---|
void |
setUp()
|
void |
tearDown()
|
void |
testCreateBean()
Tests creating a bean. |
void |
testCreateBeanWithDefaultClass()
Tests creating a bean. |
void |
testCreateBeanWithDefaultFactory()
Tests creating a bean using the default bean factory. |
void |
testCreateBeanWithException()
Tests creating a bean when the factory throws an exception. |
void |
testCreateBeanWithFactoryDefaultClass()
Tests creating a bean when the bean's class is specified as the default class of the bean factory. |
void |
testCreateBeanWithInvalidClass()
Tries to create a bean with a non existing class. |
void |
testCreateBeanWithNoClass()
Tries to create a bean when no class is provided. |
void |
testCreateBeanWithNullDeclaration()
Tests creating a bean when no bean declaration is provided. |
void |
testCreateBeanWithParameter()
Tests if a parameter is correctly passed to the bean factory. |
void |
testCreateBeanWithUnknownFactory()
Tests creating a bean using a non registered factory. |
void |
testDeregisterBeanFactory()
Tests to deregister a bean factory. |
void |
testGetDefaultBeanFactory()
Tests whether the default bean factory is correctly initialized. |
void |
testInitBean()
Tests initializing a bean. |
void |
testInitBeanWithInvalidProperty()
Tries to initialize a bean with a bean declaration that contains an invalid property value. |
void |
testInitBeanWithNoData()
Tests initializing a bean when the bean declaration does not contain any data. |
void |
testRegisterBeanFactory()
Tests registering a new bean factory. |
void |
testRegisterBeanFactoryNull()
Tries to register a null factory. |
void |
testRegisterBeanFactoryNullName()
Tries to register a bean factory with a null name. |
void |
testSetDefaultBeanFactoryNull()
Tests setting the default bean factory to null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestBeanHelper()
Method Detail |
---|
public void setUp() throws Exception
Exception
public void tearDown() throws Exception
Exception
public void testRegisterBeanFactory()
public void testRegisterBeanFactoryNull()
public void testRegisterBeanFactoryNullName()
public void testDeregisterBeanFactory()
public void testGetDefaultBeanFactory()
public void testSetDefaultBeanFactoryNull()
public void testInitBean()
public void testInitBeanWithNoData()
public void testInitBeanWithInvalidProperty()
public void testCreateBean()
public void testCreateBeanWithNullDeclaration()
public void testCreateBeanWithDefaultClass()
public void testCreateBeanWithFactoryDefaultClass()
public void testCreateBeanWithNoClass()
public void testCreateBeanWithInvalidClass()
public void testCreateBeanWithDefaultFactory()
public void testCreateBeanWithUnknownFactory()
public void testCreateBeanWithException()
public void testCreateBeanWithParameter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |