ImageImpl extends com.adobe.cq.wcm.core.components.internal.models.v1.ImageImpl implements Image { @Override public String getUuid() { return uuid; } 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 testGetUuid() { context.contentPolicyMapping(ImageImpl.RESOURCE_TYPE, "allowedRenditionWidths", new int[]{600, 700, 800, 2000, 2500}); Image image = getImageUnderTest(AbstractImageTest.IMAGE0_PATH); assertEquals("60a1a56e-f3f4-4021-a7bf-ac7a51f0ffe5", image.getUuid()); Utils.testJSONExport(image, Utils.getTestExporterJSONPath(TEST_BASE, AbstractImageTest.IMAGE0_PATH)); }
@Test void testGetUuidNull() { Image image = getImageUnderTest(IMAGE22_PATH); assertNull(image.getUuid()); }