@Test public void testRule() { StoreLargeImages uut = new StoreLargeImages(); assertTrue(uut.test(mockedLargeImg)); assertFalse(uut.test(mockedIconImg)); assertFalse(uut.test(mockedMainImg)); assertFalse(uut.test(mockedPreviewImg)); assertFalse(uut.test(null)); }
@Override public boolean test(StoreImage t) { if (t == null) { return false; } return t.getSize().equals(ImageSizePreset.FULL.getSize()); }
StoreLargeImages implements Predicate<StoreImage> { @Override public boolean test(StoreImage t) { if (t == null) { return false; } return t.getSize().equals(ImageSizePreset.FULL.getSize()); } }
StoreLargeImages implements Predicate<StoreImage> { @Override public boolean test(StoreImage t) { if (t == null) { return false; } return t.getSize().equals(ImageSizePreset.FULL.getSize()); }  }
StoreLargeImages implements Predicate<StoreImage> { @Override public boolean test(StoreImage t) { if (t == null) { return false; } return t.getSize().equals(ImageSizePreset.FULL.getSize()); }  @Override boolean test(StoreImage t); }
StoreLargeImages implements Predicate<StoreImage> { @Override public boolean test(StoreImage t) { if (t == null) { return false; } return t.getSize().equals(ImageSizePreset.FULL.getSize()); }  @Override boolean test(StoreImage t);  }