tests: refactor tests to use assertEquals instead of hacky assertTrue
@@ -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()));
}
}
