org.exolab.castor.tests.framework.testDescriptor
Class FailureType
java.lang.Object
org.exolab.castor.tests.framework.testDescriptor.FailureType
- java.io.Serializable
public class FailureType
extends java.lang.Object
implements java.io.Serializable
True if this test is expected to throw an Exception and if it
would thus
be an error if the test does not throw an Exception. False
otherwise.
If FailureType is true, then this element optionally contains
the attribute
exception that contains the class of the Exception that is
expected. If this attribute is not provided, then the presence
of any
exception causes the test to pass. Otherwise, the specific
exception
has to be thrown for the test to pass.
FailureType
public FailureType()
deleteContent
public void deleteContent()
getContent
public boolean getContent()
Returns the value of field 'content'. The field 'content'
has the following description: internal content storage
- the value of field 'Content'.
getException
public java.lang.String getException()
Returns the value of field 'exception'.
- the value of field 'Exception'.
getFailureStep
public FailureStepType getFailureStep()
Returns the value of field 'failureStep'.
- the value of field 'FailureStep'.
hasContent
public boolean hasContent()
Method hasContent.
- true if at least one Content has been added
isContent
public boolean isContent()
Returns the value of field 'content'. The field 'content'
has the following description: internal content storage
- the value of field 'Content'.
isValid
public boolean isValid()
Method isValid.
- true if this object is valid according to the schema
setContent
public void setContent(boolean content)
Sets the value of field 'content'. The field 'content' has
the following description: internal content storage
content
- the value of field 'content'.
setException
public void setException(java.lang.String exception)
Sets the value of field 'exception'.
exception
- the value of field 'exception'.
setFailureStep
public void setFailureStep(FailureStepType failureStep)
Sets the value of field 'failureStep'.
failureStep
- the value of field 'failureStep'.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com