JUnit approval extensions

I often create custom approval methods for my JUnit tests. eg:

public void assertArrays(String[] actual, String[] expected)

I was wondering if there are decent third-party libraries that can provide a wider range of statements than what is used by default in JUnit.

We use JUnit 4.

+3
source share
4 answers

The one that was forever, JUnit Addons .

+2
source

JUnit4 has a standard method: assertArrayEquals

+7
source

Google Asserts MoreAsserts. , , , open source'd.

: Android , , .

+1

. .

JUnit assertEquals JDK. , equals() assertEquals (Object, Object).

, . , equals() .

0

Source: https://habr.com/ru/post/1705217/


All Articles