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
 String cleanupDB
           
 Mongo cleanupMongo
           
 
Constructor Summary
TestCase()
          this is for normal class tests
TestCase(Object o, Method m)
           
TestCase(Object o, String m)
           
TestCase(String name)
           
 
Method Summary
 void add(TestCase tc)
           
 void cleanup()
           
static void main(String[] args)
           
protected static void run(String[] args)
           
 boolean runConsole()
           
 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 String cleanupDB

cleanupMongo

public Mongo cleanupMongo
Constructor Detail

TestCase

public TestCase()
this is for normal class tests


TestCase

public TestCase(String name)

TestCase

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

TestCase

public TestCase(Object o,
                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 String toString()
Overrides:
toString in class Object

run

protected static void run(String[] args)

main

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