com.mongodb.util
Class MyAsserts

java.lang.Object
  extended by com.mongodb.util.MyAsserts
Direct Known Subclasses:
TestCase

public class MyAsserts
extends java.lang.Object


Nested Class Summary
static class MyAsserts.MyAssert
           
 
Constructor Summary
MyAsserts()
           
 
Method Summary
static void _assertEquals(java.lang.Object a, java.lang.Object b)
           
static void assertClose(java.lang.String a, java.lang.Object o)
           
static void assertClose(java.lang.String a, java.lang.String b)
           
static void assertClose(java.lang.String a, java.lang.String b, java.lang.String tag)
           
static void assertEmptyString(java.lang.String s)
           
static void assertEquals(char a, char b)
           
static void assertEquals(double a, double b, double diff)
           
static void assertEquals(int a, int b)
           
static void assertEquals(long a, long b)
           
static void assertEquals(java.lang.Object a, java.lang.Object b)
           
static void assertEquals(short a, short b)
           
static void assertEquals(java.lang.String a, java.lang.Object b)
           
static void assertEquals(java.lang.String a, java.lang.String b, java.lang.String msg)
           
static void assertFalse(boolean b)
           
static void assertLess(double lower, double higher)
           
static void assertLess(long lower, long higher)
           
static void assertNotEquals(java.lang.Object a, java.lang.Object b)
           
static void assertNotNull(java.lang.Object foo)
           
static void assertNull(java.lang.Object foo)
           
static void assertTrue(boolean b)
           
static void assertTrue(boolean b, java.lang.String msg)
           
static boolean isClose(java.lang.String a, java.lang.String b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyAsserts

public MyAsserts()
Method Detail

assertTrue

public static void assertTrue(boolean b)

assertTrue

public static void assertTrue(boolean b,
                              java.lang.String msg)

assertFalse

public static void assertFalse(boolean b)

assertEquals

public static void assertEquals(int a,
                                int b)

assertEquals

public static void assertEquals(long a,
                                long b)

assertEquals

public static void assertEquals(char a,
                                char b)

assertEquals

public static void assertEquals(short a,
                                short b)

assertEquals

public static void assertEquals(double a,
                                double b,
                                double diff)

assertEquals

public static void assertEquals(java.lang.String a,
                                java.lang.Object b)

assertEquals

public static void assertEquals(java.lang.Object a,
                                java.lang.Object b)

_assertEquals

public static void _assertEquals(java.lang.Object a,
                                 java.lang.Object b)

assertEquals

public static void assertEquals(java.lang.String a,
                                java.lang.String b,
                                java.lang.String msg)

assertNotEquals

public static void assertNotEquals(java.lang.Object a,
                                   java.lang.Object b)

assertClose

public static void assertClose(java.lang.String a,
                               java.lang.Object o)

assertClose

public static void assertClose(java.lang.String a,
                               java.lang.String b)

assertClose

public static void assertClose(java.lang.String a,
                               java.lang.String b,
                               java.lang.String tag)

isClose

public static boolean isClose(java.lang.String a,
                              java.lang.String b)

assertNull

public static void assertNull(java.lang.Object foo)

assertNotNull

public static void assertNotNull(java.lang.Object foo)

assertLess

public static void assertLess(long lower,
                              long higher)

assertLess

public static void assertLess(double lower,
                              double higher)

assertEmptyString

public static void assertEmptyString(java.lang.String s)