org.jboss.jsfunit.analysis
Class ComponentTestCase

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

public class ComponentTestCase
extends AbstractInterfaceTestCase

A ComponentTestCase.

Version:
$Revision: 1.1 $
Author:
Alexander Jesse

Field Summary
protected  Node componentNode
          the DOM-node from the config file
protected  String configFilePath
          the pat of the config file for error reporting
 
Fields inherited from class org.jboss.jsfunit.analysis.AbstractInterfaceTestCase
classClass, className, jsfElement
 
Constructor Summary
ComponentTestCase(String name, Node componentNode, String configFilePath)
          Create a new ConverterTestCase.
 
Method Summary
protected  Class<?> getClassToExtend()
          Return the class to be extended, this munst be implemented by the specific TestCase.
 void runTest()
          Call the individual test methods.
 void testComponentClassAttribute()
          Assert that a bean configuration has a class attribute
 void testComponentTypeAttribute()
          Assert that a bean configuration has a name attribute
 
Methods inherited from class org.jboss.jsfunit.analysis.AbstractInterfaceTestCase
setClassName, testClassLoadable, testInterface
 
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

componentNode

protected Node componentNode
the DOM-node from the config file


configFilePath

protected String configFilePath
the pat of the config file for error reporting

Constructor Detail

ComponentTestCase

public ComponentTestCase(String name,
                         Node componentNode,
                         String configFilePath)
Create a new ConverterTestCase.

Parameters:
name - TestCase name
converterNode - DOM-node of the component definition
configFilePath - path to a single config file
Method Detail

getClassToExtend

protected Class<?> getClassToExtend()
Description copied from class: AbstractInterfaceTestCase
Return the class to be extended, this munst be implemented by the specific TestCase.

Specified by:
getClassToExtend in class AbstractInterfaceTestCase
Returns:
the class to be extended

runTest

public void runTest()
Description copied from class: AbstractInterfaceTestCase
Call the individual test methods.

Overrides:
runTest in class AbstractInterfaceTestCase

testComponentTypeAttribute

public void testComponentTypeAttribute()
Assert that a bean configuration has a name attribute


testComponentClassAttribute

public void testComponentClassAttribute()
Assert that a bean configuration has a class attribute



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