Binary compatible verification in unit testing

Is there a way to capture akka http binary compatible issues with Spring boot integration test? In my experience it’s not occurred in integration tests whereas below exception observed during deployment time.

java.lang.IllegalStateException: You are using version 10.2.1 of Akka HTTP,
but it appears you (perhaps indirectly) also depend on older versions of
related artifacts. You can solve this by adding an explicit dependency
on version 10.2.1 of the [akka-http-spray-json] artifacts to your project.
See also:
https://doc.akka.io/docs/akka/current/common/binary-compatibility-rules.html#mixed-versioning-is-not-allowed

1 Like

The version check happens when you start Akka and when the Akka HTTP extension is initialized, so if you start your application with all modules you are using and access the Akka HTTP extension in a test case you will get the same exception if the classpath contains a mismatch.