I sent you that much-delayed Spring example too. Looks like it works fine with the Spring 2 testing API. Before that it’s reliant on JUnit 4 which means no
@TestFactory
. I don’t really see a way to do injection in the
JUnitTests
style. Same issue as with Spek — you don’t have access to instance fields in the test from a DSL passed to the superclass constructor.