Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.beanutils
Class LazyDynaClassTestCase  view LazyDynaClassTestCase download LazyDynaClassTestCase.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.commons.beanutils.LazyDynaClassTestCase
All Implemented Interfaces:
junit.framework.Test

public class LazyDynaClassTestCase
extends junit.framework.TestCase

Test Case for the LazyDynaClass implementation class.


Field Summary
protected  LazyDynaClass dynaClass
           
protected  java.lang.String testProperty
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
LazyDynaClassTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
static void main(java.lang.String[] args)
          Run this Test
 void setUp()
          Set up instance variables required by this test case.
static junit.framework.Test suite()
          Return the tests included in this test suite.
 void tearDown()
          Tear down instance variables required by this test case.
 void testAddProperty1()
          Test add(name) method
 void testAddProperty2()
          Test add(name, type) method
 void testAddProperty3()
          Test add(name, type, readable, writable) method
 void testAddPropertyNullName1()
          Test add(name) method with 'null' name
 void testAddPropertyNullName2()
          Test add(name, type) method with 'null' name
 void testAddPropertyNullName3()
          Test add(name, type, readable, writable) method with 'null' name
 void testAddPropertyRestricted1()
          Test add(name) method when restricted is set to 'true'
 void testAddPropertyRestricted2()
          Test add(name, type) method when restricted is set to 'true'
 void testAddPropertyRestricted3()
          Test add(name, type, readable, writable) method when restricted is set to 'true'
 void testGetPropertyDoesntExist1()
          Test retrieving a property which doesn't exist (returnNull is 'false')
 void testGetPropertyDoesntExist2()
          Test retrieving a property which doesn't exist (returnNull is 'true')
 void testRemoveProperty()
          Test removing a property
 void testRemovePropertyDoesntExist()
          Test removing a property which doesn't exist
 void testRemovePropertyNullName()
          Test removing a property, name is null
 void testRemovePropertyRestricted()
          Test removing a property, DynaClass is restricted
 
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
 

Field Detail

dynaClass

protected LazyDynaClass dynaClass

testProperty

protected java.lang.String testProperty
Constructor Detail

LazyDynaClassTestCase

public LazyDynaClassTestCase(java.lang.String name)
Construct a new instance of this test case.

Method Detail

main

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


setUp

public void setUp()
           throws java.lang.Exception
Set up instance variables required by this test case.


suite

public static junit.framework.Test suite()
Return the tests included in this test suite.


tearDown

public void tearDown()
Tear down instance variables required by this test case.


testAddProperty1

public void testAddProperty1()
Test add(name) method


testAddProperty2

public void testAddProperty2()
Test add(name, type) method


testAddProperty3

public void testAddProperty3()
Test add(name, type, readable, writable) method


testAddPropertyNullName1

public void testAddPropertyNullName1()
Test add(name) method with 'null' name


testAddPropertyNullName2

public void testAddPropertyNullName2()
Test add(name, type) method with 'null' name


testAddPropertyNullName3

public void testAddPropertyNullName3()
Test add(name, type, readable, writable) method with 'null' name


testAddPropertyRestricted1

public void testAddPropertyRestricted1()
Test add(name) method when restricted is set to 'true'


testAddPropertyRestricted2

public void testAddPropertyRestricted2()
Test add(name, type) method when restricted is set to 'true'


testAddPropertyRestricted3

public void testAddPropertyRestricted3()
Test add(name, type, readable, writable) method when restricted is set to 'true'


testGetPropertyDoesntExist1

public void testGetPropertyDoesntExist1()
Test retrieving a property which doesn't exist (returnNull is 'false')


testGetPropertyDoesntExist2

public void testGetPropertyDoesntExist2()
Test retrieving a property which doesn't exist (returnNull is 'true')


testRemoveProperty

public void testRemoveProperty()
Test removing a property


testRemovePropertyNullName

public void testRemovePropertyNullName()
Test removing a property, name is null


testRemovePropertyRestricted

public void testRemovePropertyRestricted()
Test removing a property, DynaClass is restricted


testRemovePropertyDoesntExist

public void testRemovePropertyDoesntExist()
Test removing a property which doesn't exist