org.jboss.jsfunit.init
Class JSFUnitSCI

java.lang.Object
  extended by org.jboss.jsfunit.init.JSFUnitSCI
All Implemented Interfaces:
javax.servlet.ServletContainerInitializer

public class JSFUnitSCI
extends Object
implements javax.servlet.ServletContainerInitializer

This SCI class gathers all the JSFUnit tests in the WAR and makes them available to the JSFUnit console.

Since:
1.2
Author:
Stan Silvert

Field Summary
static String APP_SCOPE_KEY
          Key used by xhtml markup to access all tests from application scope.
 
Constructor Summary
JSFUnitSCI()
           
 
Method Summary
 List<String> getTests()
          Get an ordered list of all the JSFUnit tests in the WAR.
 void onStartup(Set<Class<?>> classes, javax.servlet.ServletContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APP_SCOPE_KEY

public static final String APP_SCOPE_KEY
Key used by xhtml markup to access all tests from application scope.

See Also:
Constant Field Values
Constructor Detail

JSFUnitSCI

public JSFUnitSCI()
Method Detail

onStartup

public void onStartup(Set<Class<?>> classes,
                      javax.servlet.ServletContext ctx)
               throws javax.servlet.ServletException
Specified by:
onStartup in interface javax.servlet.ServletContainerInitializer
Throws:
javax.servlet.ServletException

getTests

public List<String> getTests()
Get an ordered list of all the JSFUnit tests in the WAR.

Returns:
The list of tests.


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