org.exolab.castor.tests.framework.testDescriptor
Class UnitTestCase

java.lang.Object
  extended by org.exolab.castor.tests.framework.testDescriptor.UnitTestCase
All Implemented Interfaces:
java.io.Serializable

public class UnitTestCase
extends java.lang.Object
implements java.io.Serializable

A definition of a single Unit Test testcase.

Version:
$Revision: 6767 $ $Date$
See Also:
Serialized Form

Constructor Summary
UnitTestCase()
           
 
Method Summary
 void addComment(int index, java.lang.String vComment)
           
 void addComment(java.lang.String vComment)
           
 void addSchemaDifferences(int index, SchemaDifferences vSchemaDifferences)
           
 void addSchemaDifferences(SchemaDifferences vSchemaDifferences)
           
 void deleteGenerateImported()
           
 void deleteJavaSourceVersion()
           
 void deleteSkip()
           
 java.util.Enumeration enumerateComment()
          Method enumerateComment.
 java.util.Enumeration enumerateSchemaDifferences()
          Method enumerateSchemaDifferences.
 java.lang.String[] getComment()
          Method getComment.Returns the contents of the collection in an Array.
 java.lang.String getComment(int index)
          Method getComment.
 int getCommentCount()
          Method getCommentCount.
 Configuration getConfiguration()
          Returns the value of field 'configuration'.
 CustomTest getCustomTest()
          Returns the value of field 'customTest'.
 Failure getFailure()
          Returns the value of field 'failure'.
 boolean getGenerateImported()
          Returns the value of field 'generateImported'.
 java.lang.String getGoldFile()
          Returns the value of field 'goldFile'.
 java.lang.String getInput()
          Returns the value of field 'input'.
 float getJavaSourceVersion()
          Returns the value of field 'javaSourceVersion'.
 Listener getListener()
          Returns the value of field 'listener'.
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String getObjectBuilder()
          Returns the value of field 'objectBuilder'.
 SchemaDifferences[] getSchemaDifferences()
          Method getSchemaDifferences.Returns the contents of the collection in an Array.
 SchemaDifferences getSchemaDifferences(int index)
          Method getSchemaDifferences.
 int getSchemaDifferencesCount()
          Method getSchemaDifferencesCount.
 boolean getSkip()
          Returns the value of field 'skip'.
 UnitTestCaseChoice getUnitTestCaseChoice()
          Returns the value of field 'unitTestCaseChoice'.
 boolean hasGenerateImported()
          Method hasGenerateImported.
 boolean hasJavaSourceVersion()
          Method hasJavaSourceVersion.
 boolean hasSkip()
          Method hasSkip.
 boolean isGenerateImported()
          Returns the value of field 'generateImported'.
 boolean isSkip()
          Returns the value of field 'skip'.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllComment()
           
 void removeAllSchemaDifferences()
           
 boolean removeComment(java.lang.String vComment)
          Method removeComment.
 java.lang.String removeCommentAt(int index)
          Method removeCommentAt.
 boolean removeSchemaDifferences(SchemaDifferences vSchemaDifferences)
          Method removeSchemaDifferences.
 SchemaDifferences removeSchemaDifferencesAt(int index)
          Method removeSchemaDifferencesAt.
 void setComment(int index, java.lang.String vComment)
           
 void setComment(java.lang.String[] vCommentArray)
           
 void setConfiguration(Configuration configuration)
          Sets the value of field 'configuration'.
 void setCustomTest(CustomTest customTest)
          Sets the value of field 'customTest'.
 void setFailure(Failure failure)
          Sets the value of field 'failure'.
 void setGenerateImported(boolean generateImported)
          Sets the value of field 'generateImported'.
 void setGoldFile(java.lang.String goldFile)
          Sets the value of field 'goldFile'.
 void setInput(java.lang.String input)
          Sets the value of field 'input'.
 void setJavaSourceVersion(float javaSourceVersion)
          Sets the value of field 'javaSourceVersion'.
 void setListener(Listener listener)
          Sets the value of field 'listener'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setObjectBuilder(java.lang.String objectBuilder)
          Sets the value of field 'objectBuilder'.
 void setSchemaDifferences(int index, SchemaDifferences vSchemaDifferences)
           
 void setSchemaDifferences(SchemaDifferences[] vSchemaDifferencesArray)
           
 void setSkip(boolean skip)
          Sets the value of field 'skip'.
 void setUnitTestCaseChoice(UnitTestCaseChoice unitTestCaseChoice)
          Sets the value of field 'unitTestCaseChoice'.
static UnitTestCase unmarshal(java.io.Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitTestCase

public UnitTestCase()
Method Detail

addComment

public void addComment(java.lang.String vComment)
                throws java.lang.IndexOutOfBoundsException
Parameters:
vComment -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addComment

public void addComment(int index,
                       java.lang.String vComment)
                throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vComment -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addSchemaDifferences

public void addSchemaDifferences(SchemaDifferences vSchemaDifferences)
                          throws java.lang.IndexOutOfBoundsException
Parameters:
vSchemaDifferences -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addSchemaDifferences

public void addSchemaDifferences(int index,
                                 SchemaDifferences vSchemaDifferences)
                          throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vSchemaDifferences -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

deleteGenerateImported

public void deleteGenerateImported()

deleteJavaSourceVersion

public void deleteJavaSourceVersion()

deleteSkip

public void deleteSkip()

enumerateComment

public java.util.Enumeration enumerateComment()
Method enumerateComment.

Returns:
an Enumeration over all java.lang.String elements

enumerateSchemaDifferences

public java.util.Enumeration enumerateSchemaDifferences()
Method enumerateSchemaDifferences.

Returns:
an Enumeration over all org.exolab.castor.tests.framework.testDescriptor.SchemaDifferences elements

getComment

public java.lang.String getComment(int index)
                            throws java.lang.IndexOutOfBoundsException
Method getComment.

Parameters:
index -
Returns:
the value of the java.lang.String at the given index
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getComment

public java.lang.String[] getComment()
Method getComment.Returns the contents of the collection in an Array.

Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

Returns:
this collection as an Array

getCommentCount

public int getCommentCount()
Method getCommentCount.

Returns:
the size of this collection

getConfiguration

public Configuration getConfiguration()
Returns the value of field 'configuration'.

Returns:
the value of field 'Configuration'.

getCustomTest

public CustomTest getCustomTest()
Returns the value of field 'customTest'.

Returns:
the value of field 'CustomTest'.

getFailure

public Failure getFailure()
Returns the value of field 'failure'.

Returns:
the value of field 'Failure'.

getGenerateImported

public boolean getGenerateImported()
Returns the value of field 'generateImported'.

Returns:
the value of field 'GenerateImported'.

getGoldFile

public java.lang.String getGoldFile()
Returns the value of field 'goldFile'.

Returns:
the value of field 'GoldFile'.

getInput

public java.lang.String getInput()
Returns the value of field 'input'.

Returns:
the value of field 'Input'.

getJavaSourceVersion

public float getJavaSourceVersion()
Returns the value of field 'javaSourceVersion'.

Returns:
the value of field 'JavaSourceVersion'.

getListener

public Listener getListener()
Returns the value of field 'listener'.

Returns:
the value of field 'Listener'.

getName

public java.lang.String getName()
Returns the value of field 'name'.

Returns:
the value of field 'Name'.

getObjectBuilder

public java.lang.String getObjectBuilder()
Returns the value of field 'objectBuilder'.

Returns:
the value of field 'ObjectBuilder'.

getSchemaDifferences

public SchemaDifferences getSchemaDifferences(int index)
                                       throws java.lang.IndexOutOfBoundsException
Method getSchemaDifferences.

Parameters:
index -
Returns:
the value of the org.exolab.castor.tests.framework.testDescriptor.SchemaDifferences at the given index
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getSchemaDifferences

public SchemaDifferences[] getSchemaDifferences()
Method getSchemaDifferences.Returns the contents of the collection in an Array.

Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

Returns:
this collection as an Array

getSchemaDifferencesCount

public int getSchemaDifferencesCount()
Method getSchemaDifferencesCount.

Returns:
the size of this collection

getSkip

public boolean getSkip()
Returns the value of field 'skip'.

Returns:
the value of field 'Skip'.

getUnitTestCaseChoice

public UnitTestCaseChoice getUnitTestCaseChoice()
Returns the value of field 'unitTestCaseChoice'.

Returns:
the value of field 'UnitTestCaseChoice'.

hasGenerateImported

public boolean hasGenerateImported()
Method hasGenerateImported.

Returns:
true if at least one GenerateImported has been added

hasJavaSourceVersion

public boolean hasJavaSourceVersion()
Method hasJavaSourceVersion.

Returns:
true if at least one JavaSourceVersion has been added

hasSkip

public boolean hasSkip()
Method hasSkip.

Returns:
true if at least one Skip has been added

isGenerateImported

public boolean isGenerateImported()
Returns the value of field 'generateImported'.

Returns:
the value of field 'GenerateImported'.

isSkip

public boolean isSkip()
Returns the value of field 'skip'.

Returns:
the value of field 'Skip'.

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(java.io.Writer out)
             throws MarshalException,
                    ValidationException
Parameters:
out -
Throws:
MarshalException - if object is null or if any SAXException is thrown during marshaling
ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    MarshalException,
                    ValidationException
Parameters:
handler -
Throws:
java.io.IOException - if an IOException occurs during marshaling
ValidationException - if this object is an invalid instance according to the schema
MarshalException - if object is null or if any SAXException is thrown during marshaling

removeAllComment

public void removeAllComment()

removeAllSchemaDifferences

public void removeAllSchemaDifferences()

removeComment

public boolean removeComment(java.lang.String vComment)
Method removeComment.

Parameters:
vComment -
Returns:
true if the object was removed from the collection.

removeCommentAt

public java.lang.String removeCommentAt(int index)
Method removeCommentAt.

Parameters:
index -
Returns:
the element removed from the collection

removeSchemaDifferences

public boolean removeSchemaDifferences(SchemaDifferences vSchemaDifferences)
Method removeSchemaDifferences.

Parameters:
vSchemaDifferences -
Returns:
true if the object was removed from the collection.

removeSchemaDifferencesAt

public SchemaDifferences removeSchemaDifferencesAt(int index)
Method removeSchemaDifferencesAt.

Parameters:
index -
Returns:
the element removed from the collection

setComment

public void setComment(int index,
                       java.lang.String vComment)
                throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vComment -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setComment

public void setComment(java.lang.String[] vCommentArray)
Parameters:
vCommentArray -

setConfiguration

public void setConfiguration(Configuration configuration)
Sets the value of field 'configuration'.

Parameters:
configuration - the value of field 'configuration'.

setCustomTest

public void setCustomTest(CustomTest customTest)
Sets the value of field 'customTest'.

Parameters:
customTest - the value of field 'customTest'.

setFailure

public void setFailure(Failure failure)
Sets the value of field 'failure'.

Parameters:
failure - the value of field 'failure'.

setGenerateImported

public void setGenerateImported(boolean generateImported)
Sets the value of field 'generateImported'.

Parameters:
generateImported - the value of field 'generateImported'

setGoldFile

public void setGoldFile(java.lang.String goldFile)
Sets the value of field 'goldFile'.

Parameters:
goldFile - the value of field 'goldFile'.

setInput

public void setInput(java.lang.String input)
Sets the value of field 'input'.

Parameters:
input - the value of field 'input'.

setJavaSourceVersion

public void setJavaSourceVersion(float javaSourceVersion)
Sets the value of field 'javaSourceVersion'.

Parameters:
javaSourceVersion - the value of field 'javaSourceVersion'.

setListener

public void setListener(Listener listener)
Sets the value of field 'listener'.

Parameters:
listener - the value of field 'listener'.

setName

public void setName(java.lang.String name)
Sets the value of field 'name'.

Parameters:
name - the value of field 'name'.

setObjectBuilder

public void setObjectBuilder(java.lang.String objectBuilder)
Sets the value of field 'objectBuilder'.

Parameters:
objectBuilder - the value of field 'objectBuilder'.

setSchemaDifferences

public void setSchemaDifferences(int index,
                                 SchemaDifferences vSchemaDifferences)
                          throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vSchemaDifferences -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setSchemaDifferences

public void setSchemaDifferences(SchemaDifferences[] vSchemaDifferencesArray)
Parameters:
vSchemaDifferencesArray -

setSkip

public void setSkip(boolean skip)
Sets the value of field 'skip'.

Parameters:
skip - the value of field 'skip'.

setUnitTestCaseChoice

public void setUnitTestCaseChoice(UnitTestCaseChoice unitTestCaseChoice)
Sets the value of field 'unitTestCaseChoice'.

Parameters:
unitTestCaseChoice - the value of field 'unitTestCaseChoice'.

unmarshal

public static UnitTestCase unmarshal(java.io.Reader reader)
                              throws MarshalException,
                                     ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.exolab.castor.tests.framework.testDescriptor.UnitTestCase
Throws:
MarshalException - if object is null or if any SAXException is thrown during marshaling
ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws ValidationException
Throws:
ValidationException - if this object is an invalid instance according to the schema


Intalio Inc. (C) 1999-2007. All rights reserved http://www.intalio.com