JET

edu.utep.cs.jet.rat
Class TestCase

java.lang.Object
  extended by edu.utep.cs.jet.rat.TestCase

public class TestCase
extends Object

A class to represent a test case. A test case consists of a receiver and a sequence of arguments, and both the receiver and the arguments are objects of type Denotable.

Version:
$Revision: 1.7 $
Author:
Yoonsik Cheon

Constructor Summary
TestCase(Denotable receiver, Denotable[] args)
          Creates a new test case consisting of the given receiver and arguments.
 
Method Summary
 Denotable[] arguments()
          Returns the arguments.
 boolean hasReceiver()
          Return true if this test case needs a receiver.
 boolean isEquivalentTo(TestCase other)
          Returns true if this is equivalent to the given test case.
 Denotable receiver()
          Returns the receiver.
 String toString()
          Returns a string representation of this test case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestCase

public TestCase(Denotable receiver,
                Denotable[] args)
Creates a new test case consisting of the given receiver and arguments.

Method Detail

receiver

public Denotable receiver()
Returns the receiver.


hasReceiver

public boolean hasReceiver()
Return true if this test case needs a receiver.


arguments

public Denotable[] arguments()
Returns the arguments.


isEquivalentTo

public boolean isEquivalentTo(TestCase other)
Returns true if this is equivalent to the given test case.


toString

public String toString()
Returns a string representation of this test case.

Overrides:
toString in class Object

JET

JET is Copyright (C) 2005-2008 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.