com.github.droidfu.testsupport
Class DroidFuAssertions
java.lang.Object
com.github.droidfu.testsupport.DroidFuAssertions
public class DroidFuAssertions
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DroidFuAssertions
public DroidFuAssertions()
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.