com.github.droidfu.testsupport
Class DroidFuAssertions

java.lang.Object
  extended by com.github.droidfu.testsupport.DroidFuAssertions

public class DroidFuAssertions
extends Object


Constructor Summary
DroidFuAssertions()
           
 
Method Summary
static void assertDateEquals(Date expected, Date actual)
          Asserts that two dates are equal down to the granularity of a day.
static
<E> void
assertEqualElements(Collection<E> expected, Collection<E> actual)
           
static void assertTimeEquals(Date expected, Date actual)
          Asserts that two dates are equal down to the granularity of a second.
static void useJUnit3()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DroidFuAssertions

public DroidFuAssertions()
Method Detail

useJUnit3

public static void useJUnit3()

assertEqualElements

public static <E> void assertEqualElements(Collection<E> expected,
                                           Collection<E> actual)

assertDateEquals

public static void assertDateEquals(Date expected,
                                    Date actual)
Asserts that two dates are equal down to the granularity of a day. This assertion ignores the time component entirely, i.e. two dates are considered equal even if the times of day differ.

Parameters:
expected -
actual -

assertTimeEquals

public static void assertTimeEquals(Date expected,
                                    Date actual)
Asserts that two dates are equal down to the granularity of a second. This assertion ignores milliseconds, so two dates will be considered equal even if their milliseconds fractions differ.

Parameters:
expected -
actual -


Copyright © 2011. All Rights Reserved.