org.apache.hadoop.mrunit.testutil
Class ExtendedAssert

java.lang.Object
  extended by org.apache.hadoop.mrunit.testutil.ExtendedAssert

public final class ExtendedAssert
extends Object


Method Summary
static void assertGreater(int x, int y)
          asserts x > y
static void assertGreaterOrEqual(int x, int y)
          asserts x >= y)
static void assertLess(int x, int y)
          asserts x < y
static void assertLessOrEqual(int x, int y)
          asserts x >= y)
static void assertListEquals(List<?> expected, List<?> actual)
          Asserts that all the elements of the list are equivalent under equals()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertListEquals

public static void assertListEquals(List<?> expected,
                                    List<?> actual)
Asserts that all the elements of the list are equivalent under equals()

Parameters:
expected - a list full of expected values
actual - a list full of actual test values

assertGreater

public static void assertGreater(int x,
                                 int y)
asserts x > y


assertGreaterOrEqual

public static void assertGreaterOrEqual(int x,
                                        int y)
asserts x >= y)


assertLess

public static void assertLess(int x,
                              int y)
asserts x < y


assertLessOrEqual

public static void assertLessOrEqual(int x,
                                     int y)
asserts x >= y)



Copyright © 2012 The Apache Software Foundation. All Rights Reserved.