@Test void testTimestampOnRootIsRecent() { final Instant time = now().minusSeconds(1L); final Resource res = DBResource.findResource(pg.getPostgresDatabase(), root, extensions, false) .toCompletableFuture().join(); assertEquals(root, res.getIdentifier()); assertTrue(res.getModified().isAfter(time)); }
public Instant getModified() { if (modified > 0) { return Instant.ofEpochMilli(modified); } return Instant.now(); }
ResourceData { public Instant getModified() { if (modified > 0) { return Instant.ofEpochMilli(modified); } return Instant.now(); } }
ResourceData { public Instant getModified() { if (modified > 0) { return Instant.ofEpochMilli(modified); } return Instant.now(); } ResourceData(final ResultSet rs); }
ResourceData { public Instant getModified() { if (modified > 0) { return Instant.ofEpochMilli(modified); } return Instant.now(); } ResourceData(final ResultSet rs); int getId(); IRI getInteractionModel(); Instant getModified(); Optional<IRI> getIsPartOf(); boolean hasAcl(); boolean isDeleted(); Optional<IRI> getMembershipResource(); Optional<IRI> getHasMemberRelation(); Optional<IRI> getIsMemberOfRelation(); Optional<IRI> getInsertedContentRelation(); Optional<BinaryMetadata> getBinaryMetadata(); Map<String, String> getExtra(); void setExtra(final Map<String, String> extra); }
ResourceData { public Instant getModified() { if (modified > 0) { return Instant.ofEpochMilli(modified); } return Instant.now(); } ResourceData(final ResultSet rs); int getId(); IRI getInteractionModel(); Instant getModified(); Optional<IRI> getIsPartOf(); boolean hasAcl(); boolean isDeleted(); Optional<IRI> getMembershipResource(); Optional<IRI> getHasMemberRelation(); Optional<IRI> getIsMemberOfRelation(); Optional<IRI> getInsertedContentRelation(); Optional<BinaryMetadata> getBinaryMetadata(); Map<String, String> getExtra(); void setExtra(final Map<String, String> extra);  }