ImageImpl extends com.adobe.cq.wcm.core.components.internal.models.v1.ImageImpl implements Image { @Override public int getLazyThreshold() { return this.lazyThreshold; } ImageImpl(); @NotNull @Override int[] getWidths(); @Override String getSrcUriTemplate(); @Override boolean isLazyEnabled(); @Override int getLazyThreshold(); @Override List<ImageArea> getAreas(); @Override String getUuid(); static final String RESOURCE_TYPE; }
@Test void testImageWithLazyThreshold() { context.contentPolicyMapping(ImageImpl.RESOURCE_TYPE, Image.PN_DESIGN_LAZY_THRESHOLD, 100); Image image = getImageUnderTest(AbstractImageTest.IMAGE3_PATH); assertEquals(100, image.getLazyThreshold()); Utils.testJSONExport(image, Utils.getTestExporterJSONPath(TEST_BASE, AbstractImageTest.IMAGE3_PATH + "-with-lazy-threshold")); }