Update matcher to return true if argument is null

MYC-Refactor
Hammy 3 years ago
parent 30a855a0fb
commit 69f517ae51

@ -16,6 +16,8 @@ class BufferedImageMatcher implements Matcher<BufferedImage> {
@Override @Override
public boolean matches(Object argument) { public boolean matches(Object argument) {
if (argument == null) return true;
BufferedImage actual = (BufferedImage) argument; BufferedImage actual = (BufferedImage) argument;
assertEquals(expected.getWidth(), actual.getWidth()); assertEquals(expected.getWidth(), actual.getWidth());

Loading…
Cancel
Save