Menu

#712 JUnit checks should allow using ArrayAssert etc.

open
pmd (543)
5
2012-10-07
2007-09-11
epe
No

When using the class junitx.framework.ArrayAssert from junit addons, PMD fails with the message:

"JUnit tests should include assert() or fail()"

Sample code (compares to byte[] arrays):

ArrayAssert.assertEquals("Invalid token", new String("Once upon a time").getBytes(), authtoken.getToken());

Discussion


Log in to post a comment.