Revert "tests: refactor tests to use assertEquals instead of hacky assertTrue"

This reverts commit d6e3d013e7.
This commit is contained in:
Connor Tumbleson 2018-04-06 14:58:48 -04:00
parent 4d89228686
commit 923ae6e9b8

View File

@ -31,7 +31,6 @@ 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;
@ -46,11 +45,11 @@ public class BaseTest {
Map<String, String> controlFiles = control.unknownFiles;
Map<String, String> testFiles = test.unknownFiles;
assertEquals(controlFiles.size(), testFiles.size());
assertTrue(controlFiles.size() == testFiles.size());
// Make sure that the compression methods are still the same
for (Map.Entry<String, String> controlEntry : controlFiles.entrySet()) {
assertEquals(controlEntry.getValue(), testFiles.get(controlEntry.getKey()));
assertTrue(controlEntry.getValue().equals(testFiles.get(controlEntry.getKey())));
}
}