LimeWire Consolidated API

org.limewire.util
Class AssertComparisons

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.limewire.util.AssertComparisons
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
BaseTestCase

public abstract class AssertComparisons
extends junit.framework.TestCase

A set of assert comparisons to check greater than / less than situations, instanceof and not equals.


Constructor Summary
AssertComparisons(String name)
          Named constructor.
 
Method Summary
static void assertCompareToEquals(Object expected, Object actual)
          Asserts that the actual is compareTo == 0 to another value.
static void assertCompareToEquals(String msg, Object expected, Object actual)
          Asserts that the actual is compareTo == 0 to another value.
static void assertContains(Collection col, Object obj)
          Assert that the collection contains the object.
static void assertContains(String msg, Collection col, Object obj)
          Asserts that the collection contains the object.
static void assertEmpty(Collection collection)
           
static void assertEmpty(String msg, Collection collection)
           
static void assertEquals(boolean[] expected, boolean[] actual)
          Assert that the two arrays are equal.
static void assertEquals(byte[] expected, byte[] actual)
          Assert that the two arrays are equal.
static void assertEquals(byte[] expected, byte[] actual, int actualOff, int actualLen)
          Assert that the two arrays are equal.
static void assertEquals(byte[] expected, int expectedOff, int expectedLen, byte[] actual)
          Assert that the two arrays are equal.
static void assertEquals(byte[] expected, int expectedOff, int expectedLen, byte[] actual, int actualOff, int actualLen)
          Assert that the two arrays are equal.
static void assertEquals(char[] expected, char[] actual)
          Assert that the two arrays are equal.
static void assertEquals(double[] expected, double[] actual)
          Assert that the two arrays are equal.
static void assertEquals(int[] expected, int[] actual)
          Assert that the two arrays are equal.
static void assertEquals(long[] expected, long[] actual)
          Assert that the two arrays are equal.
static void assertEquals(Object[] expected, Object[] actual)
          Assert that the two arrays are equal.
static void assertEquals(short[] expected, short[] actual)
          Assert that the two arrays are equal.
static void assertEquals(String msg, boolean[] expected, boolean[] actual)
          Assert that the two arrays are equal.
static void assertEquals(String msg, byte[] expected, byte[] actual)
          Assert that the two arrays are equal.
static void assertEquals(String msg, byte[] expected, byte[] actual, int actualOff, int actualLen)
          Assert that the two arrays are equal.
static void assertEquals(String msg, byte[] expected, int expectedOff, int expectedLen, byte[] actual)
          Assert that the two arrays are equal.
static void assertEquals(String msg, byte[] expected, int expectedOff, int expectedLen, byte[] actual, int actualOff, int actualLen)
          Assert that the two arrays are equal.
static void assertEquals(String msg, char[] expected, char[] actual)
          Assert that the two arrays are equal.
static void assertEquals(String msg, double[] expected, double[] actual)
          Assert that the two arrays are equal.
static void assertEquals(String msg, int[] expected, int[] actual)
          Assert that the two arrays are equal.
static void assertEquals(String msg, long[] expected, long[] actual)
          Assert that the two arrays are equal.
static void assertEquals(String msg, Object[] expected, Object[] actual)
          Assert that the two arrays are equal.
static void assertEquals(String msg, short[] expected, short[] actual)
          Assert that the two arrays are equal.
static void assertGreaterThan(byte expected, byte actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(double expected, double actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(float expected, float actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(int expected, int actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(long expected, long actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(Object expected, Object actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(short expected, short actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(String msg, byte expected, byte actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(String msg, double expected, double actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(String msg, float expected, float actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(String msg, int expected, int actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(String msg, long expected, long actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(String msg, Object expected, Object actual)
          Assertes that actual is greater than expected.
static void assertGreaterThan(String msg, short expected, short actual)
          Assertes that actual is greater than expected.
static void assertGreaterThanOrEquals(byte expected, byte actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(double expected, double actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(float expected, float actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(int expected, int actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(long expected, long actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(Object expected, Object actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(short expected, short actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(String msg, byte expected, byte actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(String msg, double expected, double actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(String msg, float expected, float actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(String msg, int expected, int actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(String msg, long expected, long actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(String msg, Object expected, Object actual)
          Assertes that actual is greater than or equal to expected.
static void assertGreaterThanOrEquals(String msg, short expected, short actual)
          Assertes that actual is greater than or equal to expected.
static void assertInstanceof(Class expected, Object actual)
          Asserts that actual is an instance of class expected.
static void assertInstanceof(String msg, Class expected, Object actual)
          Asserts that actual is an instance of the class expected.
static void assertLessThan(byte expected, byte actual)
          Assertes that actual is less than expected.
static void assertLessThan(double expected, double actual)
          Assertes that actual is less than expected.
static void assertLessThan(float expected, float actual)
          Assertes that actual is less than expected.
static void assertLessThan(int expected, int actual)
          Assertes that actual is less than expected.
static void assertLessThan(long expected, long actual)
          Assertes that actual is less than expected.
static void assertLessThan(Object expected, Object actual)
          Assertes that actual is less than expected.
static void assertLessThan(short expected, short actual)
          Assertes that actual is less than expected.
static void assertLessThan(String msg, byte expected, byte actual)
          Assertes that actual is less than expected.
static void assertLessThan(String msg, double expected, double actual)
          Assertes that actual is less than expected.
static void assertLessThan(String msg, float expected, float actual)
          Assertes that actual is less than expected.
static void assertLessThan(String msg, int expected, int actual)
          Assertes that actual is less than expected.
static void assertLessThan(String msg, long expected, long actual)
          Assertes that actual is less than expected.
static void assertLessThan(String msg, Object expected, Object actual)
          Assertes that actual is less than expected.
static void assertLessThan(String msg, short expected, short actual)
          Assertes that actual is less than expected.
static void assertLessThanOrEquals(byte expected, byte actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(double expected, double actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(float expected, float actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(int expected, int actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(long expected, long actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(Object expected, Object actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(short expected, short actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(String msg, byte expected, byte actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(String msg, double expected, double actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(String msg, float expected, float actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(String msg, int expected, int actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(String msg, long expected, long actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(String msg, Object expected, Object actual)
          Assertes that actual is less than or equal to expected.
static void assertLessThanOrEquals(String msg, short expected, short actual)
          Assertes that actual is less than or equal to expected.
static void assertNotContains(Collection col, Object obj)
          Assert that the collection does not contain the object.
static void assertNotContains(String msg, Collection col, Object obj)
          Asserts that the collection does not contain the object.
static void assertNotEmpty(Collection collection)
           
static void assertNotEmpty(String msg, Collection collection)
           
static void assertNotEquals(boolean[] expected, boolean[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(byte[] expected, byte[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(byte[] expected, byte[] actual, int actualOff, int actualLen)
          Assert that the two arrays are not equal.
static void assertNotEquals(byte[] expected, int expectedOff, int expectedLen, byte[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(byte[] expected, int expectedOff, int expectedLen, byte[] actual, int actualOff, int actualLen)
          Assert that the two arrays are not equal.
static void assertNotEquals(byte expected, byte actual)
          Assertes that actual is not equal to expected.
static void assertNotEquals(char[] expected, char[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(double[] expected, double[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(double expected, double actual)
          Assertes that actual is not equal to expected.
static void assertNotEquals(float[] expected, float[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(float expected, float actual)
          Assertes that actual is not equal to expected.
static void assertNotEquals(int[] expected, int[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(int expected, int actual)
          Assertes that actual is not equal to expected.
static void assertNotEquals(long[] expected, long[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(long expected, long actual)
          Assertes that actual is not equal to expected.
static void assertNotEquals(Object[] expected, Object[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(Object expected, Object actual)
          Asserts that actual is not equal to expected.
static void assertNotEquals(short[] expected, short[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(short expected, short actual)
          Assertes that actual is not equal to expected.
static void assertNotEquals(String msg, boolean[] expected, boolean[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(String msg, byte[] expected, byte[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(String msg, byte[] expected, byte[] actual, int actualOff, int actualLen)
          Assert that the two arrays are not equal.
static void assertNotEquals(String msg, byte[] expected, int expectedOff, int expectedLen, byte[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(String msg, byte[] expected, int expectedOff, int expectedLen, byte[] actual, int actualOff, int actualLen)
          Assert that the two arrays are not equal.
static void assertNotEquals(String msg, byte expected, byte actual)
          Assertes that actual is not equal to expected.
static void assertNotEquals(String msg, char[] expected, char[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(String msg, double[] expected, double[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(String msg, double expected, double actual)
          Assertes that actual is not equal to expected.
static void assertNotEquals(String msg, float[] expected, float[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(String msg, float expected, float actual)
          Assertes that actual is not equal to expected.
static void assertNotEquals(String msg, int[] expected, int[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(String msg, int expected, int actual)
          Assertes that actual is not equal to expected.
static void assertNotEquals(String msg, long[] expected, long[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(String msg, long expected, long actual)
          Assertes that actual is not equal to expected.
static void assertNotEquals(String msg, Object[] expected, Object[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(String msg, Object expected, Object actual)
          Asserts that actual is not equal to expected.
static void assertNotEquals(String msg, short[] expected, short[] actual)
          Assert that the two arrays are not equal.
static void assertNotEquals(String msg, short expected, short actual)
          Assertes that actual is not equal to expected.
static void assertNotInstanceof(Class expected, Object actual)
          Asserts that actual is not an instanceof the expected class.
static void assertNotInstanceof(String msg, Class expected, Object actual)
          Asserts that actual is an not instance of the class expected.
static void assertNotNull(Object actual)
          Asserts that an object is not null.
static void assertNotNull(String msg, Object actual)
          Asserts that an object is not null.
static void assertNull(Object actual)
          Asserts that an object is null.
static void assertNull(String msg, Object actual)
          Asserts that an object is null.
 
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, assertNotSame, assertNotSame, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssertComparisons

public AssertComparisons(String name)
Named constructor.

Method Detail

assertEquals

public static void assertEquals(boolean[] expected,
                                boolean[] actual)
Assert that the two arrays are equal.


assertEquals

public static void assertEquals(String msg,
                                boolean[] expected,
                                boolean[] actual)
Assert that the two arrays are equal. If not, an AssertionFailedError is thrown with the given messages.


assertEquals

public static void assertEquals(byte[] expected,
                                byte[] actual)
Assert that the two arrays are equal.


assertEquals

public static void assertEquals(String msg,
                                byte[] expected,
                                byte[] actual)
Assert that the two arrays are equal. If not, an AssertionFailedError is thrown with the given messages.


assertEquals

public static void assertEquals(byte[] expected,
                                byte[] actual,
                                int actualOff,
                                int actualLen)
Assert that the two arrays are equal.


assertEquals

public static void assertEquals(String msg,
                                byte[] expected,
                                byte[] actual,
                                int actualOff,
                                int actualLen)
Assert that the two arrays are equal. If not, an AssertionFailedError is thrown with the given messages.


assertEquals

public static void assertEquals(byte[] expected,
                                int expectedOff,
                                int expectedLen,
                                byte[] actual)
Assert that the two arrays are equal.


assertEquals

public static void assertEquals(String msg,
                                byte[] expected,
                                int expectedOff,
                                int expectedLen,
                                byte[] actual)
Assert that the two arrays are equal. If not, an AssertionFailedError is thrown with the given messages.


assertEquals

public static void assertEquals(byte[] expected,
                                int expectedOff,
                                int expectedLen,
                                byte[] actual,
                                int actualOff,
                                int actualLen)
Assert that the two arrays are equal.


assertEquals

public static void assertEquals(String msg,
                                byte[] expected,
                                int expectedOff,
                                int expectedLen,
                                byte[] actual,
                                int actualOff,
                                int actualLen)
Assert that the two arrays are equal. If not, an AssertionFailedError is thrown with the given messages.


assertEquals

public static void assertEquals(char[] expected,
                                char[] actual)
Assert that the two arrays are equal.


assertEquals

public static void assertEquals(String msg,
                                char[] expected,
                                char[] actual)
Assert that the two arrays are equal. If not, an AssertionFailedError is thrown with the given messages.


assertEquals

public static void assertEquals(double[] expected,
                                double[] actual)
Assert that the two arrays are equal.


assertEquals

public static void assertEquals(String msg,
                                double[] expected,
                                double[] actual)
Assert that the two arrays are equal. If not, an AssertionFailedError is thrown with the given messages.


assertEquals

public static void assertEquals(int[] expected,
                                int[] actual)
Assert that the two arrays are equal.


assertEquals

public static void assertEquals(String msg,
                                int[] expected,
                                int[] actual)
Assert that the two arrays are equal. If not, an AssertionFailedError is thrown with the given messages.


assertEquals

public static void assertEquals(long[] expected,
                                long[] actual)
Assert that the two arrays are equal.


assertEquals

public static void assertEquals(String msg,
                                long[] expected,
                                long[] actual)
Assert that the two arrays are equal. If not, an AssertionFailedError is thrown with the given messages.


assertEquals

public static void assertEquals(Object[] expected,
                                Object[] actual)
Assert that the two arrays are equal.


assertEquals

public static void assertEquals(String msg,
                                Object[] expected,
                                Object[] actual)
Assert that the two arrays are equal. If not, an AssertionFailedError is thrown with the given messages.


assertEquals

public static void assertEquals(short[] expected,
                                short[] actual)
Assert that the two arrays are equal.


assertEquals

public static void assertEquals(String msg,
                                short[] expected,
                                short[] actual)
Assert that the two arrays are equal. If not, an AssertionFailedError is thrown with the given messages.


assertContains

public static void assertContains(Collection col,
                                  Object obj)
Assert that the collection contains the object.


assertContains

public static void assertContains(String msg,
                                  Collection col,
                                  Object obj)
Asserts that the collection contains the object. If it doesn't, an AssertionFailedError is thrown with the given message.


assertNotContains

public static void assertNotContains(Collection col,
                                     Object obj)
Assert that the collection does not contain the object.


assertNotContains

public static void assertNotContains(String msg,
                                     Collection col,
                                     Object obj)
Asserts that the collection does not contain the object. If it does an AssertionFailedError is thrown with the given message.


assertInstanceof

public static void assertInstanceof(Class expected,
                                    Object actual)
Asserts that actual is an instance of class expected. If it isn't, an AssertionFailedError is thrown.


assertInstanceof

public static void assertInstanceof(String msg,
                                    Class expected,
                                    Object actual)
Asserts that actual is an instance of the class expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertNotInstanceof

public static void assertNotInstanceof(Class expected,
                                       Object actual)
Asserts that actual is not an instanceof the expected class. If it is, an AssertionFailedError is thrown.


assertNotInstanceof

public static void assertNotInstanceof(String msg,
                                       Class expected,
                                       Object actual)
Asserts that actual is an not instance of the class expected. If it is, an AssertionFailedError is thrown with the given message.


assertNull

public static void assertNull(Object actual)
Asserts that an object is null.


assertNull

public static void assertNull(String msg,
                              Object actual)
Asserts that an object is null. If it isn't, throws an AssertionFailedError with the given message.


assertNotNull

public static void assertNotNull(Object actual)
Asserts that an object is not null.


assertNotNull

public static void assertNotNull(String msg,
                                 Object actual)
Asserts that an object is not null. If it is, throws an AssertionFailedError with the given message.


assertNotEquals

public static void assertNotEquals(Object expected,
                                   Object actual)
Asserts that actual is not equal to expected. If they are equal, an AssertionFailedError is thrown.


assertNotEquals

public static void assertNotEquals(String msg,
                                   Object expected,
                                   Object actual)
Asserts that actual is not equal to expected. If they are equal, an AssertionFailedError is thrown with the given message.


assertNotEquals

public static void assertNotEquals(long expected,
                                   long actual)
Assertes that actual is not equal to expected. if they are equal, an AssertionFailedError is thrown.


assertNotEquals

public static void assertNotEquals(String msg,
                                   long expected,
                                   long actual)
Assertes that actual is not equal to expected. if they are equal, an AssertionFailedError is thrown with the given message.


assertNotEquals

public static void assertNotEquals(short expected,
                                   short actual)
Assertes that actual is not equal to expected. if they are equal, an AssertionFailedError is thrown.


assertNotEquals

public static void assertNotEquals(String msg,
                                   short expected,
                                   short actual)
Assertes that actual is not equal to expected. if they are equal, an AssertionFailedError is thrown with the given message.


assertNotEquals

public static void assertNotEquals(int expected,
                                   int actual)
Assertes that actual is not equal to expected. if they are equal, an AssertionFailedError is thrown.


assertNotEquals

public static void assertNotEquals(String msg,
                                   int expected,
                                   int actual)
Assertes that actual is not equal to expected. if they are equal, an AssertionFailedError is thrown with the given message.


assertNotEquals

public static void assertNotEquals(double expected,
                                   double actual)
Assertes that actual is not equal to expected. if they are equal, an AssertionFailedError is thrown.


assertNotEquals

public static void assertNotEquals(String msg,
                                   double expected,
                                   double actual)
Assertes that actual is not equal to expected. if they are equal, an AssertionFailedError is thrown with the given message.


assertNotEquals

public static void assertNotEquals(float expected,
                                   float actual)
Assertes that actual is not equal to expected. if they are equal, an AssertionFailedError is thrown.


assertNotEquals

public static void assertNotEquals(String msg,
                                   float expected,
                                   float actual)
Assertes that actual is not equal to expected. if they are equal, an AssertionFailedError is thrown with the given message.


assertNotEquals

public static void assertNotEquals(byte expected,
                                   byte actual)
Assertes that actual is not equal to expected. if they are equal, an AssertionFailedError is thrown.


assertNotEquals

public static void assertNotEquals(String msg,
                                   byte expected,
                                   byte actual)
Assertes that actual is not equal to expected. if they are equal, an AssertionFailedError is thrown with the given message.


assertNotEquals

public static void assertNotEquals(boolean[] expected,
                                   boolean[] actual)
Assert that the two arrays are not equal.


assertNotEquals

public static void assertNotEquals(String msg,
                                   boolean[] expected,
                                   boolean[] actual)
Assert that the two arrays are not equal. If not, an AssertionFailedError is thrown with the given messages.


assertNotEquals

public static void assertNotEquals(byte[] expected,
                                   byte[] actual)
Assert that the two arrays are not equal.


assertNotEquals

public static void assertNotEquals(String msg,
                                   byte[] expected,
                                   byte[] actual)
Assert that the two arrays are not equal. If not, an AssertionFailedError is thrown with the given messages.


assertNotEquals

public static void assertNotEquals(byte[] expected,
                                   byte[] actual,
                                   int actualOff,
                                   int actualLen)
Assert that the two arrays are not equal.


assertNotEquals

public static void assertNotEquals(String msg,
                                   byte[] expected,
                                   byte[] actual,
                                   int actualOff,
                                   int actualLen)
Assert that the two arrays are not equal. If not, an AssertionFailedError is thrown with the given messages.


assertNotEquals

public static void assertNotEquals(byte[] expected,
                                   int expectedOff,
                                   int expectedLen,
                                   byte[] actual)
Assert that the two arrays are not equal.


assertNotEquals

public static void assertNotEquals(String msg,
                                   byte[] expected,
                                   int expectedOff,
                                   int expectedLen,
                                   byte[] actual)
Assert that the two arrays are not equal. If not, an AssertionFailedError is thrown with the given messages.


assertNotEquals

public static void assertNotEquals(byte[] expected,
                                   int expectedOff,
                                   int expectedLen,
                                   byte[] actual,
                                   int actualOff,
                                   int actualLen)
Assert that the two arrays are not equal.


assertNotEquals

public static void assertNotEquals(String msg,
                                   byte[] expected,
                                   int expectedOff,
                                   int expectedLen,
                                   byte[] actual,
                                   int actualOff,
                                   int actualLen)
Assert that the two arrays are not equal. If not, an AssertionFailedError is thrown with the given messages.


assertNotEquals

public static void assertNotEquals(char[] expected,
                                   char[] actual)
Assert that the two arrays are not equal.


assertNotEquals

public static void assertNotEquals(String msg,
                                   char[] expected,
                                   char[] actual)
Assert that the two arrays are not equal. If not, an AssertionFailedError is thrown with the given messages.


assertNotEquals

public static void assertNotEquals(float[] expected,
                                   float[] actual)
Assert that the two arrays are not equal.


assertNotEquals

public static void assertNotEquals(String msg,
                                   float[] expected,
                                   float[] actual)
Assert that the two arrays are not equal. If not, an AssertionFailedError is thrown with the given messages.


assertNotEquals

public static void assertNotEquals(double[] expected,
                                   double[] actual)
Assert that the two arrays are not equal.


assertNotEquals

public static void assertNotEquals(String msg,
                                   double[] expected,
                                   double[] actual)
Assert that the two arrays are not equal. If not, an AssertionFailedError is thrown with the given messages.


assertNotEquals

public static void assertNotEquals(int[] expected,
                                   int[] actual)
Assert that the two arrays are not equal.


assertNotEquals

public static void assertNotEquals(String msg,
                                   int[] expected,
                                   int[] actual)
Assert that the two arrays are not equal. If not, an AssertionFailedError is thrown with the given messages.


assertNotEquals

public static void assertNotEquals(long[] expected,
                                   long[] actual)
Assert that the two arrays are not equal.


assertNotEquals

public static void assertNotEquals(String msg,
                                   long[] expected,
                                   long[] actual)
Assert that the two arrays are not equal. If not, an AssertionFailedError is thrown with the given messages.


assertNotEquals

public static void assertNotEquals(Object[] expected,
                                   Object[] actual)
Assert that the two arrays are not equal.


assertNotEquals

public static void assertNotEquals(String msg,
                                   Object[] expected,
                                   Object[] actual)
Assert that the two arrays are not equal. If not, an AssertionFailedError is thrown with the given messages.


assertNotEquals

public static void assertNotEquals(short[] expected,
                                   short[] actual)
Assert that the two arrays are not equal.


assertNotEquals

public static void assertNotEquals(String msg,
                                   short[] expected,
                                   short[] actual)
Assert that the two arrays are not equal. If not, an AssertionFailedError is thrown with the given messages.


assertCompareToEquals

public static void assertCompareToEquals(Object expected,
                                         Object actual)
Asserts that the actual is compareTo == 0 to another value. If it isn't, an AssertionFailedError is thrown.


assertCompareToEquals

public static void assertCompareToEquals(String msg,
                                         Object expected,
                                         Object actual)
Asserts that the actual is compareTo == 0 to another value. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThan

public static void assertGreaterThan(Object expected,
                                     Object actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThan

public static void assertGreaterThan(String msg,
                                     Object expected,
                                     Object actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThan

public static void assertGreaterThan(long expected,
                                     long actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThan

public static void assertGreaterThan(String msg,
                                     long expected,
                                     long actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThan

public static void assertGreaterThan(short expected,
                                     short actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThan

public static void assertGreaterThan(String msg,
                                     short expected,
                                     short actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThan

public static void assertGreaterThan(int expected,
                                     int actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThan

public static void assertGreaterThan(String msg,
                                     int expected,
                                     int actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThan

public static void assertGreaterThan(double expected,
                                     double actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThan

public static void assertGreaterThan(String msg,
                                     double expected,
                                     double actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThan

public static void assertGreaterThan(float expected,
                                     float actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThan

public static void assertGreaterThan(String msg,
                                     float expected,
                                     float actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThan

public static void assertGreaterThan(byte expected,
                                     byte actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThan

public static void assertGreaterThan(String msg,
                                     byte expected,
                                     byte actual)
Assertes that actual is greater than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThan

public static void assertLessThan(Object expected,
                                  Object actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown.


assertLessThan

public static void assertLessThan(String msg,
                                  Object expected,
                                  Object actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThan

public static void assertLessThan(long expected,
                                  long actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown.


assertLessThan

public static void assertLessThan(String msg,
                                  long expected,
                                  long actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThan

public static void assertLessThan(short expected,
                                  short actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown.


assertLessThan

public static void assertLessThan(String msg,
                                  short expected,
                                  short actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThan

public static void assertLessThan(int expected,
                                  int actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown.


assertLessThan

public static void assertLessThan(String msg,
                                  int expected,
                                  int actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThan

public static void assertLessThan(double expected,
                                  double actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown.


assertLessThan

public static void assertLessThan(String msg,
                                  double expected,
                                  double actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThan

public static void assertLessThan(float expected,
                                  float actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown.


assertLessThan

public static void assertLessThan(String msg,
                                  float expected,
                                  float actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThan

public static void assertLessThan(byte expected,
                                  byte actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown.


assertLessThan

public static void assertLessThan(String msg,
                                  byte expected,
                                  byte actual)
Assertes that actual is less than expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(Object expected,
                                             Object actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(String msg,
                                             Object expected,
                                             Object actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(long expected,
                                             long actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(String msg,
                                             long expected,
                                             long actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(short expected,
                                             short actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(String msg,
                                             short expected,
                                             short actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(int expected,
                                             int actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(String msg,
                                             int expected,
                                             int actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(double expected,
                                             double actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(String msg,
                                             double expected,
                                             double actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(float expected,
                                             float actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(String msg,
                                             float expected,
                                             float actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(byte expected,
                                             byte actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertGreaterThanOrEquals

public static void assertGreaterThanOrEquals(String msg,
                                             byte expected,
                                             byte actual)
Assertes that actual is greater than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThanOrEquals

public static void assertLessThanOrEquals(Object expected,
                                          Object actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertLessThanOrEquals

public static void assertLessThanOrEquals(String msg,
                                          Object expected,
                                          Object actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThanOrEquals

public static void assertLessThanOrEquals(long expected,
                                          long actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertLessThanOrEquals

public static void assertLessThanOrEquals(String msg,
                                          long expected,
                                          long actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThanOrEquals

public static void assertLessThanOrEquals(short expected,
                                          short actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertLessThanOrEquals

public static void assertLessThanOrEquals(String msg,
                                          short expected,
                                          short actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThanOrEquals

public static void assertLessThanOrEquals(int expected,
                                          int actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertLessThanOrEquals

public static void assertLessThanOrEquals(String msg,
                                          int expected,
                                          int actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThanOrEquals

public static void assertLessThanOrEquals(double expected,
                                          double actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertLessThanOrEquals

public static void assertLessThanOrEquals(String msg,
                                          double expected,
                                          double actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThanOrEquals

public static void assertLessThanOrEquals(float expected,
                                          float actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertLessThanOrEquals

public static void assertLessThanOrEquals(String msg,
                                          float expected,
                                          float actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertLessThanOrEquals

public static void assertLessThanOrEquals(byte expected,
                                          byte actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown.


assertLessThanOrEquals

public static void assertLessThanOrEquals(String msg,
                                          byte expected,
                                          byte actual)
Assertes that actual is less than or equal to expected. If it isn't, an AssertionFailedError is thrown with the given message.


assertEmpty

public static void assertEmpty(Collection collection)

assertEmpty

public static void assertEmpty(String msg,
                               Collection collection)

assertNotEmpty

public static void assertNotEmpty(Collection collection)

assertNotEmpty

public static void assertNotEmpty(String msg,
                                  Collection collection)

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.