jfun.jaskell.junit
Class TupleMemberTest

java.lang.Object
  extended byjfun.jaskell.junit.TupleMemberTest
All Implemented Interfaces:
junit.framework.Protectable, junit.framework.Test

public final class TupleMemberTest
extends java.lang.Object
implements junit.framework.Test, junit.framework.Protectable

This class implements Test by evaluating a tuple member.

Because Ant expects a public getName() method in a public class in order to report the test case name correctly, this class has a getName() method and is made public, which is not necesssary otherwise.

Author:
Ben Yu Mar 7, 2006 12:35:33 PM

Constructor Summary
TupleMemberTest(java.lang.Object key, TupleMember mbr, Tuple me, java.lang.String suitename)
          To create a TupleMemberTest instance.
 
Method Summary
 int countTestCases()
           
 java.lang.String getName()
          Get the name of the test case.
 void protect()
           
 void run(junit.framework.TestResult result)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TupleMemberTest

public TupleMemberTest(java.lang.Object key,
                       TupleMember mbr,
                       Tuple me,
                       java.lang.String suitename)
To create a TupleMemberTest instance.

Parameters:
key - the key of the member.
mbr - the tuple member.
me - the owning tuple.
suitename - the test suite name.
Method Detail

countTestCases

public int countTestCases()
Specified by:
countTestCases in interface junit.framework.Test

run

public void run(junit.framework.TestResult result)
Specified by:
run in interface junit.framework.Test

protect

public void protect()
             throws java.lang.Throwable
Specified by:
protect in interface junit.framework.Protectable
Throws:
java.lang.Throwable

toString

public java.lang.String toString()

getName

public java.lang.String getName()
Get the name of the test case.