@Test public void testMinimalConvert() { pageEntity = new PageEntity(); pageEntity.setType(PAGE_TYPE); Instant now = Instant.now(); pageEntity.setLastModificationDate(Date.from(now)); Page responsePage = pageMapper.convert(pageEntity); assertNotNull(responsePage); PageConfiguration pageConfiguration = responsePage.getConfiguration(); assertNull(pageConfiguration); List<Metadata> metadatas = responsePage.getMetadata(); assertNull(metadatas); assertEquals(TypeEnum.SWAGGER, responsePage.getType()); assertEquals(now.toEpochMilli(), responsePage.getUpdatedAt().toInstant().toEpochMilli()); }
public Page convert(PageEntity page) { return convert(null, null, page); }
PageMapper { public Page convert(PageEntity page) { return convert(null, null, page); } }
PageMapper { public Page convert(PageEntity page) { return convert(null, null, page); }  }
PageMapper { public Page convert(PageEntity page) { return convert(null, null, page); }  Page convert(PageEntity page); Page convert(UriBuilder baseUriBuilder, String apiId, PageEntity page); PageLinks computePageLinks(String basePath, String parentPath); }
PageMapper { public Page convert(PageEntity page) { return convert(null, null, page); }  Page convert(PageEntity page); Page convert(UriBuilder baseUriBuilder, String apiId, PageEntity page); PageLinks computePageLinks(String basePath, String parentPath);  }