Example usage for Java android.test MoreAsserts fields, constructors, methods, implement or subclass
The text is from its open source code.
MatchResult | assertContainsRegex(String expectedRegex, String actual) Variant of #assertContainsRegex(String,String,String) using a generic message. |
void | assertContentsInOrder(String message, Iterable> actual, Object... expected) Asserts that actual contains precisely the elements expected , and in the same order. |
void | assertEmpty(Iterable> iterable) Variant of #assertEmpty(String,Iterable) using a generic message. |
void | assertEmpty(Map, ?> map) Variant of #assertEmpty(String,Map) using a generic message. |
void | assertEquals(byte[] expected, byte[] actual) Asserts that array actual is the same size and every element equals those in array expected . |
void | assertEquals(int[] expected, int[] actual) Asserts that array actual is the same size and every element equals those in array expected . |
void | assertEquals(long[] expected, long[] actual) |
void | assertEquals(double[] expected, double[] actual) Asserts that array actual is the same size and every element equals those in array expected . |
void | assertEquals(Object[] expected, Object[] actual) Asserts that array actual is the same size and every element is the same as those in array expected . |
void | assertEquals(Set extends Object> expected, Set extends Object> actual) Asserts that two sets contain the same elements. |
void | assertNotContainsRegex(String expectedRegex, String actual) Variant of #assertNotContainsRegex(String,String,String) using a generic message. |
void | assertNotEmpty(String message, Iterable> iterable) Asserts that iterable is not empty. |
void | assertNotEmpty(String message, Map, ?> map) Asserts that map is not empty. |
void | assertNotEqual(Object unexpected, Object actual) Variant of #assertNotEqual(String,Object,Object) using a generic message. |
void | checkEqualsAndHashCodeMethods(Object lhs, Object rhs, boolean expectedResult) Variant of checkEqualsAndHashCodeMethods(String,Object,Object,boolean...)} using a generic message. |