de.web.databasesupport.tools.test
Class TestedMethod

java.lang.Object
  |
  +--de.web.databasesupport.tools.test.TestedMethod

public class TestedMethod
extends java.lang.Object

Contains Information about a testrun on a method


Constructor Summary
TestedMethod(java.lang.String classname, java.lang.String methodName)
          Constructs a new TestedMethod - object and sets the classname of the tested class, the methodname of the tested method and signs it as a empty TestedMethod - object.
TestedMethod(java.lang.String classname, java.lang.String methodName, java.lang.String methodDescription, java.lang.String tester, java.lang.String usedMethodDescription, long date, java.lang.String testClass)
          Constructs a new TestedMethod - object and sets the classname of the tested class, the methodname of the tested method, the general description of the method, who tests this method the description how a tests will use this method and when the tests runs.
 
Method Summary
 java.lang.String getClassname()
          Returns the classname of the tested class.
 long getDate()
          Returns the date of the start of the test.
 java.lang.String getExceptionlog()
          Returns the log of the throwns exception.
 java.lang.String getMethodDescription()
          Returns the general method description.
 java.lang.String getMethodLog()
          Returns the log of what the method has done.
 java.lang.String getMethodName()
          Returns the methodname.
 java.lang.String[] getParameter()
          Returns the parameter of the test.
 java.util.Vector getResultlog()
          Returns a Vector with Strings containing all results the method has made.
 java.lang.String getTestClass()
          Returns the classname of the tester class who generated the TestedMethod-object..
 java.lang.String getTester()
          Returns the testername.
 java.lang.String getUsedMethodDescription()
          Returns the description how the method was used in the test.
 boolean isEmptyTestedMethod()
          Returns if the TestedMethod is signed as empty.
 boolean isExistsResult()
          Returns if a result exists.
 boolean isWithoutException()
          Returns if there was no exception.
 void setExceptionlog(java.lang.String exceptionLog)
          Sets the log of the thrown exceptions in the method.
 void setExistsResult(boolean existsResult)
          Sets if there was a result generated by the tested method.
 void setMethodLog(java.lang.String methodLog)
          Sets the log of the method.
 void setParameter(java.lang.String[] parameter)
          Sets the used parameters of this TestedMethod-object.
 void setResultlog(java.util.Vector resultLog)
          Sets the log of the results produced in the method.
 void setWithoutException(boolean withoutException)
          Sets if there was no exception in the testrun of the method.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestedMethod

public TestedMethod(java.lang.String classname,
                    java.lang.String methodName)
Constructs a new TestedMethod - object and sets the classname of the tested class, the methodname of the tested method and signs it as a empty TestedMethod - object. This constructor is only used for the linklist generator.
Parameters:
classname - The name of the tested class.
methodName - The name of the tested Method.

TestedMethod

public TestedMethod(java.lang.String classname,
                    java.lang.String methodName,
                    java.lang.String methodDescription,
                    java.lang.String tester,
                    java.lang.String usedMethodDescription,
                    long date,
                    java.lang.String testClass)
Constructs a new TestedMethod - object and sets the classname of the tested class, the methodname of the tested method, the general description of the method, who tests this method the description how a tests will use this method and when the tests runs.
Parameters:
classname - The name of the tested class.
methodName - The name of the tested Method.
methodDescription - The general description of the method.
tester - The name of the tester.
usedMethodDescription - The description how the tested method will be used.
date - The time of the beginning of the test.
testClass - The testerClass who generates the TestedMethod-object.
Method Detail

getClassname

public java.lang.String getClassname()
Returns the classname of the tested class.
Returns:
The classname of the tested class.

getTestClass

public java.lang.String getTestClass()
Returns the classname of the tester class who generated the TestedMethod-object..
Returns:
The classname of the tester class who generated the TestedMethod-object..

isEmptyTestedMethod

public boolean isEmptyTestedMethod()
Returns if the TestedMethod is signed as empty.
Returns:
If the TestedMethod is signed as empty.

getMethodDescription

public java.lang.String getMethodDescription()
Returns the general method description.
Returns:
The general method description.

setParameter

public void setParameter(java.lang.String[] parameter)
Sets the used parameters of this TestedMethod-object.
Parameters:
parameter - The parameters used for the test.

getTester

public java.lang.String getTester()
Returns the testername.
Returns:
The testername.

setMethodLog

public void setMethodLog(java.lang.String methodLog)
Sets the log of the method.
Parameters:
methodLog - The log of the method in the testrun.

setExceptionlog

public void setExceptionlog(java.lang.String exceptionLog)
Sets the log of the thrown exceptions in the method.
Parameters:
exceptionLog - The log of the thrown exceptions in the testrun.

setExistsResult

public void setExistsResult(boolean existsResult)
Sets if there was a result generated by the tested method.
Parameters:
existsResult - If a result was generetad by the tested method.

setWithoutException

public void setWithoutException(boolean withoutException)
Sets if there was no exception in the testrun of the method.
Parameters:
withoutException - If there was no exception in the testrun of the method.

setResultlog

public void setResultlog(java.util.Vector resultLog)
Sets the log of the results produced in the method.
Parameters:
resultLog - The log of the results produced in the method.

getMethodName

public java.lang.String getMethodName()
Returns the methodname.
Returns:
The methodname.

getDate

public long getDate()
Returns the date of the start of the test.
Returns:
The date of the start of the test.

getUsedMethodDescription

public java.lang.String getUsedMethodDescription()
Returns the description how the method was used in the test.
Returns:
The description how the method was used in the test.

getParameter

public java.lang.String[] getParameter()
Returns the parameter of the test.
Returns:
The parameter of the test.

getMethodLog

public java.lang.String getMethodLog()
Returns the log of what the method has done.
Returns:
The log of what the method has done.

isExistsResult

public boolean isExistsResult()
Returns if a result exists.
Returns:
If a result exists.

getResultlog

public java.util.Vector getResultlog()
Returns a Vector with Strings containing all results the method has made.
Returns:
A Vector with Strings containing all results the method has made.

isWithoutException

public boolean isWithoutException()
Returns if there was no exception.
Returns:
If there was no exception.

getExceptionlog

public java.lang.String getExceptionlog()
Returns the log of the throwns exception.
Returns:
The log of the throwns exception.