Created
December 27, 2023 12:40
-
-
Save LitschiW/ec39565305cf2fc911ddd4ad3f708f39 to your computer and use it in GitHub Desktop.
PathInaccessibleObjectExceptionTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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