com.mongodb.util
Class TestCase

java.lang.Object
  extended by com.mongodb.util.MyAsserts
      extended by com.mongodb.util.TestCase

public class TestCase
extends MyAsserts


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mongodb.util.MyAsserts
MyAsserts.MyAssert
 
Field Summary
 java.lang.String cleanupDB
           
 Mongo cleanupMongo
           
 
Constructor Summary
TestCase()
          this is for normal class tests
TestCase(java.lang.Object o, java.lang.reflect.Method m)
           
TestCase(java.lang.Object o, java.lang.String m)
           
TestCase(java.lang.String name)
           
 
Method Summary
 void add(TestCase tc)
           
 void cleanup()
           
static void main(java.lang.String[] args)
           
protected static void run(java.lang.String[] args)
           
 boolean runConsole()
           
 java.lang.String toString()
           
 
Methods inherited from class com.mongodb.util.MyAsserts
_assertEquals, assertClose, assertClose, assertClose, assertEmptyString, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertLess, assertLess, assertNotEquals, assertNotNull, assertNull, assertTrue, assertTrue, isClose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cleanupDB

public java.lang.String cleanupDB

cleanupMongo

public Mongo cleanupMongo
Constructor Detail

TestCase

public TestCase()
this is for normal class tests


TestCase

public TestCase(java.lang.String name)

TestCase

public TestCase(java.lang.Object o,
                java.lang.String m)
         throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

TestCase

public TestCase(java.lang.Object o,
                java.lang.reflect.Method m)
Method Detail

add

public void add(TestCase tc)

cleanup

public void cleanup()

runConsole

public boolean runConsole()
Returns:
true if everything succeeds

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

run

protected static void run(java.lang.String[] args)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception