JET

edu.utep.cs.et.gui.tester
Class EtTestCase

java.lang.Object
  extended by edu.utep.cs.et.gui.tester.EtTestCase

 class EtTestCase
extends Object

A wrapper to the TestCase class to add test-related data such as the method under test and the test result.

Version:
$Revision: 1.14 $
Author:
Yoonsik Cheon

Field Summary
private  String failureMessage
          Failure message associated with the wrapped test case.
private  boolean isPositive
          True if the wrapped test case is a positive test case.
private  EtMethod meth
          The method to which the wrapped test case belongs.
private  TestCase testcase
          The wrapped test case.
 
Constructor Summary
EtTestCase(EtMethod meth, TestCase testcase)
          Creates a new wrapper for the given test case of the given method.
EtTestCase(EtMethod meth, TestCase testcase, boolean isPositive)
          Creates a new wrapper for the given test case of the given method.
EtTestCase(EtMethod meth, TestCase testcase, String msg)
          Creates a new wrapper for the given negative test case of the given method with the given failure message.
 
Method Summary
 String description()
          Returns a textual description of this test case.
 String failureMessage()
          Returns the failure message associated with this test case.
 boolean isPositive()
          Returns true if this is a positive test case.
 EtMethod method()
          Returns the method that was tested.
 String name()
          Returns the name of this test case.
 TestCase testcase()
          Returns the wrapped test case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

meth

private EtMethod meth
The method to which the wrapped test case belongs.


testcase

private TestCase testcase
The wrapped test case.


isPositive

private boolean isPositive
True if the wrapped test case is a positive test case. A test case is called positive if it is a successful test case; otherwise, it is called negative.


failureMessage

private String failureMessage
Failure message associated with the wrapped test case. This is null iff the wrapped test case is a positive, i.e., test success.

Constructor Detail

EtTestCase

public EtTestCase(EtMethod meth,
                  TestCase testcase)
Creates a new wrapper for the given test case of the given method. The test case is assumed to be a positive test case.


EtTestCase

public EtTestCase(EtMethod meth,
                  TestCase testcase,
                  boolean isPositive)
Creates a new wrapper for the given test case of the given method.


EtTestCase

public EtTestCase(EtMethod meth,
                  TestCase testcase,
                  String msg)
Creates a new wrapper for the given negative test case of the given method with the given failure message.

Method Detail

isPositive

public boolean isPositive()
Returns true if this is a positive test case. A postive test case is a test case with which a test execution has been successful.


name

public String name()
Returns the name of this test case.


method

public EtMethod method()
Returns the method that was tested.


testcase

public TestCase testcase()
Returns the wrapped test case.


description

public String description()
Returns a textual description of this test case.


failureMessage

public String failureMessage()
Returns the failure message associated with this test case. If this is a positive test case, null is returned.


JET

JET is Copyright (C) 2005-2007 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.