Issue #2080: Simplify JUnit assertion

This commit is contained in:
Michal Kordas 2015-11-20 23:45:16 +01:00 committed by Roman Ivanov
parent 22144522d6
commit fdd5ed77fd
1 changed files with 1 additions and 2 deletions

View File

@ -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();