hudson.plugins.utplsql
Class Testcase

java.lang.Object
  extended by hudson.plugins.utplsql.Testcase
All Implemented Interfaces:
Serializable

public class Testcase
extends Object
implements Serializable

Holds all information given by a single testcase (assert) of utplsql Currently just an intermediate solution for easy creation of the jUnit xml files. Maybe this becomes obsolete later.

See Also:
Serialized Form

Field Summary
static String FAILURE
           
static String SUCCESS
           
 
Constructor Summary
Testcase(TestPackage testPackage, String line)
          Constructor to instanciate a testcase by parsing a given line of utPLSQL output
 
Method Summary
 void appendToMessage(String newLine)
           
 String getClassName()
           
 double getElapsedTimeInSeconds()
           
 String getMessage()
           
 String getName()
           
 String getResult()
           
 String getXmlSnippet()
          Returns an xml-snippet to be inserted into the jUnit-file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

public static final String SUCCESS
See Also:
Constant Field Values

FAILURE

public static final String FAILURE
See Also:
Constant Field Values
Constructor Detail

Testcase

public Testcase(TestPackage testPackage,
                String line)
Constructor to instanciate a testcase by parsing a given line of utPLSQL output

Parameters:
line - one line of dbms_output indicating success or failure of a single assert
Method Detail

getResult

public String getResult()

getClassName

public String getClassName()

getName

public String getName()

getMessage

public String getMessage()
Returns:
Message value (surrounded with quotation marks)

getElapsedTimeInSeconds

public double getElapsedTimeInSeconds()

appendToMessage

public void appendToMessage(String newLine)

getXmlSnippet

public String getXmlSnippet()
Returns an xml-snippet to be inserted into the jUnit-file

Returns:
some text, ready to be inserted into a jUnit-file


Copyright © 2004-2014. All Rights Reserved.