Skip to content

Instantly share code, notes, and snippets.

@LitschiW
Created December 27, 2023 12:40
Show Gist options
  • Save LitschiW/ec39565305cf2fc911ddd4ad3f708f39 to your computer and use it in GitHub Desktop.
Save LitschiW/ec39565305cf2fc911ddd4ad3f708f39 to your computer and use it in GitHub Desktop.
PathInaccessibleObjectExceptionTest
import org.javers.core.JaversBuilder
import org.junit.Test
import java.nio.file.Path
class PathInaccessibleObjectExceptionTest {
static class Entity {
Path path
}
@Test
void testJaversBuilder() {
var javers = JaversBuilder.javers()
.registerValueObjects(
Entity.class
)
.build()
javers.compare(
new Entity(path: Path.of("foo")),
new Entity(path: Path.of("bar")))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment