Strictland is a new open-source JVM library for contract testing message serialization compatibility. Unlike Pact or Spring Cloud Contracts, it takes a lightweight approach: it serializes a message in a unit test and saves the output as a snapshot file committed alongside code. Tests fail when the serialized shape changes unexpectedly. It supports snapshot checks (exact format unchanged) and compatibility checks (backward/forward compatibility between message versions). No broker, schema registry, or Docker setup required — just ordinary unit tests using your application's own serializer. Currently JVM-only (Java, Kotlin, Scala), with .NET and TypeScript support planned.

8m read timeFrom event-driven.io
Post cover image
Table of contents
What’s Strictland?Why such a name?How to use it?Should you use it?
10.1K Impressions