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.
The one that was forever, JUnit Addons .
JUnit4 has a standard method: assertArrayEquals
Google Asserts MoreAsserts. , , , open source'd.
: Android , , .
. .
JUnit assertEquals JDK. , equals() assertEquals (Object, Object).
, . , equals() .
Source: https://habr.com/ru/post/1705217/More articles:How to unit test manage a server during postback? - unit-testingMSIL: redundant branch - cilHow do I implement the autonumber field in SQL Server 2005? - sql-server-2005How to make multi-headed connection in JPA? - java-eeHow to get java 1.6 applet running on mac os x - javaPressing Vector Vectors - c ++Linq to Sql Parent Child - c #A set of new features in LaTeX - latexTip, not a question: Pseudo-Push function via pressed email - iphoneUpdate div (to view redraw it) - javascriptAll Articles