org.apache.geronimo.validator.ejb
Class BaseEjbJarTest
java.lang.Object
org.apache.geronimo.validator.ValidationTest
org.apache.geronimo.validator.ejb.BaseEjbJarTest
- Direct Known Subclasses:
- SessionBeanTests
- public abstract class BaseEjbJarTest
- extends ValidationTest
Barely worth having, but this implements one method to return the name of
the deployment descriptor that its subclasses apply to. Also tracks the
current EJB-JAR JavaBean tree in case someone wants to navigate it.
- Version:
- $Revision: 1.4 $ $Date: 2004/03/10 09:58:44 $
Field Summary |
protected org.apache.geronimo.xbeans.j2ee.EjbJarType |
ejbJar
|
Method Summary |
org.apache.xmlbeans.SchemaType |
getSchemaType()
Any given test class is typically associated with one particular
deployment descriptor. |
ValidationResult |
initialize(ValidationContext context)
Called before any test methods are run in order to establish the
context for the test. |
Methods inherited from class org.apache.geronimo.validator.ValidationTest |
error, error, error, error, error, error, getXpath, loadClass, warn, warn, warn, warn, warn, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ejbJar
protected org.apache.geronimo.xbeans.j2ee.EjbJarType ejbJar
BaseEjbJarTest
public BaseEjbJarTest()
getSchemaType
public org.apache.xmlbeans.SchemaType getSchemaType()
- Description copied from class:
ValidationTest
- Any given test class is typically associated with one particular
deployment descriptor. If the returns a non-null value, this test will
be invoked with a context specific to the provided deployment
descriptor. If it returns null, this test will be invoked once for the
module as a whole.
- Specified by:
getSchemaType
in class ValidationTest
- Returns:
- A standard deployment descriptor name, with no directory, (such
as "ejb-jar.xml"), or null to be invoked with
no particular DD context.
initialize
public ValidationResult initialize(ValidationContext context)
- Description copied from class:
ValidationTest
- Called before any test methods are run in order to establish the
context for the test. This method will typically read the current
node (set corresponding to the XPath of interest) and cast it to
some specific object type (from XmlObject to SessionBeanType, for
example).
- Specified by:
initialize
in class ValidationTest
- Parameters:
context
- The context for all test methods in this class to use.
- Returns:
- The result of the initialization. Usually returns success,
but may not in a case, for example, where during initialization
it is determined that no tests could run successfully (due to
missing classes or whatever). If this method does not return
PASSED or PASSED_WITH_WARNINGS, then no test methods on this
class will be run.
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.