UTJML

edu.utep.cs.utjml.rat
Class TestCase

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

public class TestCase
extends Object

A class to represent test cases. A test case consists of a receiver and a sequence of arguments.

Version:
$Revision: 1.2 $
Author:
Yoonsik Cheon

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

Constructor Detail

TestCase

public TestCase(Denotable receiver,
                Denotable[] args)
Creates a new test case with the given receiver and arguments. Both the receiver and the arguments can be null.

Method Detail

receiver

public Denotable receiver()
Returns the receiver. If this test case does not have a receiver, null is returned.

See Also:
hasReceiver()

hasReceiver

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


arguments

public Denotable[] arguments()
Returns the arguments. If this test case doesn't have any arugments, an empty array is returned.


UTJML

UTJML is Copyright (C) 2004-2006 by 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. This release depends on code from the JML project.