Issue #2080: Simplify JUnit assertion
This commit is contained in:
parent
22144522d6
commit
fdd5ed77fd
|
|
@ -21,7 +21,6 @@ package com.google.checkstyle.test.base;
|
|||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.ByteArrayInputStream;
|
||||
|
|
@ -147,7 +146,7 @@ public class BaseCheckTestSupport {
|
|||
|
||||
assertEquals("unexpected output: " + lnr.readLine(),
|
||||
expected.length, errs);
|
||||
assertTrue("unexpected warnings " + theWarnings, theWarnings.size() == 0);
|
||||
assertEquals("unexpected warnings " + theWarnings, 0, theWarnings.size());
|
||||
}
|
||||
|
||||
checker.destroy();
|
||||
|
|
|
|||
Loading…
Reference in New Issue