org.jboss.jsfunit.analysis
Class ManagedBeanTestSuite

java.lang.Object
  extended by junit.framework.TestSuite
      extended by org.jboss.jsfunit.analysis.ManagedBeanTestSuite
All Implemented Interfaces:
junit.framework.Test

public class ManagedBeanTestSuite
extends junit.framework.TestSuite
implements junit.framework.Test

A TestSuite for a single JSF managed bean.

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

Constructor Summary
ManagedBeanTestSuite(String name)
          Create a new ManagedBeanTestSuite.
 
Method Summary
 StreamProvider getStreamProvider()
          Accessor for the streamProvider attribute
 junit.framework.Test getSuite(String configFilePath, String managedBeanName, Node managedBeanNode)
          Create the TestSuite for a managed bean.
 void setStreamProvider(StreamProvider streamProvider)
          Accessor for the streamProvider attribute.
 
Methods inherited from class junit.framework.TestSuite
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

ManagedBeanTestSuite

public ManagedBeanTestSuite(String name)
Create a new ManagedBeanTestSuite.

Parameters:
name - The name of the test-suite in the JUnit test-hierarchy
Method Detail

getSuite

public junit.framework.Test getSuite(String configFilePath,
                                     String managedBeanName,
                                     Node managedBeanNode)
Create the TestSuite for a managed bean. The TestSuite-name is the name passed to this suite (constructor).

Parameters:
configFilePath - path to a single config file
managedBeanName - the name of the bean to build the test suite for
managedBeanNode - the DOM node containing the managed bean
Returns:
a JUnit Test to be added to the actual test suite

getStreamProvider

public StreamProvider getStreamProvider()
Accessor for the streamProvider attribute

Returns:
the streamprovider

setStreamProvider

public void setStreamProvider(StreamProvider streamProvider)

Accessor for the streamProvider attribute. Usually used to set a special StreamProvider. By default a DefaultStreamProvider is created.

Parameters:
streamProvider - the new StreamProvider


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