tests: refactor tests to use assertEquals instead of hacky assertTrue

This commit is contained in:
Connor Tumbleson 2018-03-29 15:41:41 -04:00
parent 653472d006
commit d6e3d013e7

View File

@ -31,6 +31,7 @@ import java.util.Map;
import java.util.Set;
import java.util.logging.Logger;
import static junit.framework.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.custommonkey.xmlunit.XMLAssert.assertXMLEqual;
@ -45,11 +46,11 @@ public class BaseTest {
Map<String, String> controlFiles = control.unknownFiles;
Map<String, String> testFiles = test.unknownFiles;
assertTrue(controlFiles.size() == testFiles.size());
assertEquals(controlFiles.size(), testFiles.size());
// Make sure that the compression methods are still the same
for (Map.Entry<String, String> controlEntry : controlFiles.entrySet()) {
assertTrue(controlEntry.getValue().equals(testFiles.get(controlEntry.getKey())));
assertEquals(controlEntry.getValue(), testFiles.get(controlEntry.getKey()));
}
}