Java android.test MoreAsserts fields, constructors, methods, implement or subclass

Example usage for Java android.test MoreAsserts fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.test MoreAsserts.

The text is from its open source code.

Method

MatchResultassertContainsRegex(String expectedRegex, String actual)
Variant of #assertContainsRegex(String,String,String) using a generic message.
voidassertContentsInOrder(String message, Iterable actual, Object... expected)
Asserts that actual contains precisely the elements expected , and in the same order.
voidassertEmpty(Iterable iterable)
Variant of #assertEmpty(String,Iterable) using a generic message.
voidassertEmpty(Map map)
Variant of #assertEmpty(String,Map) using a generic message.
voidassertEquals(byte[] expected, byte[] actual)
Asserts that array actual is the same size and every element equals those in array expected .
voidassertEquals(int[] expected, int[] actual)
Asserts that array actual is the same size and every element equals those in array expected .
voidassertEquals(long[] expected, long[] actual)
voidassertEquals(double[] expected, double[] actual)
Asserts that array actual is the same size and every element equals those in array expected .
voidassertEquals(Object[] expected, Object[] actual)
Asserts that array actual is the same size and every element is the same as those in array expected .
voidassertEquals(Set expected, Set actual)
Asserts that two sets contain the same elements.
voidassertNotContainsRegex(String expectedRegex, String actual)
Variant of #assertNotContainsRegex(String,String,String) using a generic message.
voidassertNotEmpty(String message, Iterable iterable)
Asserts that iterable is not empty.
voidassertNotEmpty(String message, Map map)
Asserts that map is not empty.
voidassertNotEqual(Object unexpected, Object actual)
Variant of #assertNotEqual(String,Object,Object) using a generic message.
voidcheckEqualsAndHashCodeMethods(Object lhs, Object rhs, boolean expectedResult)
Variant of checkEqualsAndHashCodeMethods(String,Object,Object,boolean...)} using a generic message.