org.eigenbase.test
Class EigenbaseTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eigenbase.test.EigenbaseTestCase
All Implemented Interfaces:
Test
Direct Known Subclasses:
BufferedIterator.Test, CompoundIterator.Test, CompoundParallelTupleIter.Test, CompoundTupleIter.Test, PersistentPropertyTest, ThreadIteratorTest

public abstract class EigenbaseTestCase
extends TestCase


Field Summary
protected static String[] emptyStringArray
           
protected static String nl
           
 
Constructor Summary
protected EigenbaseTestCase(String s)
           
 
Method Summary
protected  void assertEquals(Iterator iterator, Object[] a)
          Checks that an iterator returns the same objects as the contents of an array.
protected  void assertEquals(List list, Object[] a)
          Checks that a list has the same contents as an array.
protected  void assertEquals(Object[] expected, Object actual)
           
protected  void assertEquals(Object[] expected, Object[] actual)
          Checks that two arrays are equal.
protected  void assertEquals(TupleIter iterator, Object[] a)
          Checks that a TupleIter returns the same objects as the contents of an array.
protected static void assertEqualsDeep(Object o, Object o2)
           
protected  void assertThrowableContains(Throwable throwable, String pattern)
          Fails if throwable is null, or if its message does not contain the string pattern.
static TestSuite copySuite(TestSuite suite, Pattern testPattern)
          Copies all of the tests in a suite whose names match a given pattern.
static Iterator makeIterator(Object[] a)
          Returns an iterator over the elements of an array.
static TupleIter makeTupleIter(Object[] a)
          Returns a TupleIter over the elements of an array.
protected static List toList(Enumeration enumeration)
          Converts an enumeration to a list.
protected static List toList(Iterator iterator)
          Converts an iterator to a list.
protected static List toList(TupleIter tupleIter)
          Converts a TupleIter to a list.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nl

protected static final String nl

emptyStringArray

protected static final String[] emptyStringArray
Constructor Detail

EigenbaseTestCase

protected EigenbaseTestCase(String s)
                     throws Exception
Throws:
Exception
Method Detail

assertEqualsDeep

protected static void assertEqualsDeep(Object o,
                                       Object o2)

assertThrowableContains

protected void assertThrowableContains(Throwable throwable,
                                       String pattern)
Fails if throwable is null, or if its message does not contain the string pattern.


makeIterator

public static Iterator makeIterator(Object[] a)
Returns an iterator over the elements of an array.


makeTupleIter

public static TupleIter makeTupleIter(Object[] a)
Returns a TupleIter over the elements of an array.


toList

protected static List toList(Iterator iterator)
Converts an iterator to a list.


toList

protected static List toList(TupleIter tupleIter)
Converts a TupleIter to a list.


toList

protected static List toList(Enumeration enumeration)
Converts an enumeration to a list.


assertEquals

protected void assertEquals(Iterator iterator,
                            Object[] a)
Checks that an iterator returns the same objects as the contents of an array.


assertEquals

protected void assertEquals(TupleIter iterator,
                            Object[] a)
Checks that a TupleIter returns the same objects as the contents of an array.


assertEquals

protected void assertEquals(List list,
                            Object[] a)
Checks that a list has the same contents as an array.


assertEquals

protected void assertEquals(Object[] expected,
                            Object[] actual)
Checks that two arrays are equal.


assertEquals

protected void assertEquals(Object[] expected,
                            Object actual)

copySuite

public static TestSuite copySuite(TestSuite suite,
                                  Pattern testPattern)
Copies all of the tests in a suite whose names match a given pattern.