org.jboss.jsfunit.analysis
Class ManagedPropertyTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jboss.jsfunit.analysis.ManagedPropertyTestCase
All Implemented Interfaces:
junit.framework.Test

public class ManagedPropertyTestCase
extends junit.framework.TestCase

A TestCase for a single JSF managed property.

Version:
$$Revision: $$
Author:
Alexander Jesse

Field Summary
protected  String configFilePath
          path to the config file
protected  Class<?> managedBeanClass
          class of the managed bean
protected  String managedBeanClassName
          class name of the managed bean
protected  String managedBeanName
          name of the managed bean
protected  String managedPropertyName
          name of the managed bean property
protected  Node managedPropertyNode
          DOM node of the managed property to test
 
Constructor Summary
ManagedPropertyTestCase(String name, String configFilePath, String managedBeanName, String managedBeanClassName, String managedPropertyName, Node managedPropertyNode)
          Create a new ManagedPropertyTestCase.
 
Method Summary
 void runTest()
          Call the individual test methods.
 void testMapDuplicateKeys()
          Assert that the property does not define duplicate map-entries
 void testPropertyAccessors()
          Assert that a bean class has accessors for the property
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

configFilePath

protected String configFilePath
path to the config file


managedBeanName

protected String managedBeanName
name of the managed bean


managedBeanClassName

protected String managedBeanClassName
class name of the managed bean


managedPropertyName

protected String managedPropertyName
name of the managed bean property


managedBeanClass

protected Class<?> managedBeanClass
class of the managed bean


managedPropertyNode

protected Node managedPropertyNode
DOM node of the managed property to test

Constructor Detail

ManagedPropertyTestCase

public ManagedPropertyTestCase(String name,
                               String configFilePath,
                               String managedBeanName,
                               String managedBeanClassName,
                               String managedPropertyName,
                               Node managedPropertyNode)
Create a new ManagedPropertyTestCase.

Parameters:
name - The name of the test-case in the JUnit test-hierarchy
configFilePath - path to a single config file
managedBeanName - the name of the bean to test
managedBeanClassName - the class name of the bean to test
managedPropertyName - the name of the property to test
managedPropertyNode - the DOM node containing the managed bean
Method Detail

runTest

public void runTest()
Call the individual test methods.

Overrides:
runTest in class junit.framework.TestCase

testPropertyAccessors

public void testPropertyAccessors()
Assert that a bean class has accessors for the property


testMapDuplicateKeys

public void testMapDuplicateKeys()
Assert that the property does not define duplicate map-entries



Copyright © 2007-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.