Hi Lukas, I created a simplified example similar to what we have in our codebase. You can find the working example here <https://github.com/jonnybbb/jOOQ-mcve/tree/autoclosable_context>. It basically narrows down to the usage of the spock.lang.@AutoCleanup usage as you can see in BaseDBTest.groovy <https://github.com/jonnybbb/jOOQ-mcve/blob/98845c8721f773047870bb0d8ba04ad4ec0ddb72/src/test/groovy/org/jooq/mcve/groovy/BaseDBTest.groovy#L11-L11> Let me know if you need more details.
Thanks Johannes On Mon, 30 Nov 2020 at 09:45, Lukas Eder <[email protected]> wrote: > Hi Johannes, > > Can you please show what you're doing (in code) and why you're expecting > the things you're expecting? > > Thanks, > Lukas > > On Sat, Nov 28, 2020 at 1:15 PM Johannes Bühler <[email protected]> > wrote: > >> In 3.14.x the DefaultCloseableDSLContext has been introduced and the >> DefaultDSLContext is not autocloseable anymore. We are using the >> Autoclosable capabilties within our tests to ensure a clean shutdown. In >> the previous JOOQ version 3.13.x we used the DSL.using(Configuration) api. >> Is there an Autoclosable equivalent in 3.14.x or is it planned to add a new >> constructor DefaultCloseableDSLContext(Configuration)? >> >> I am happy to create an Issue for that and provide a PR if that's the way >> to go. >> >> Thanks. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "jOOQ User Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jooq-user/38464b74-de2e-4f96-a9c3-56d39f5caff1n%40googlegroups.com >> <https://groups.google.com/d/msgid/jooq-user/38464b74-de2e-4f96-a9c3-56d39f5caff1n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "jOOQ User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jooq-user/CAB4ELO48q3ij3jNg5uF_ZuQ6yGRSqtx%2BD6%3DaZ8j7a5rM%2BP-dFw%40mail.gmail.com > <https://groups.google.com/d/msgid/jooq-user/CAB4ELO48q3ij3jNg5uF_ZuQ6yGRSqtx%2BD6%3DaZ8j7a5rM%2BP-dFw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Johannes Bühler Senior Software Engineer Gradle W. gradle.com -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAL_ciTLPTL4OJ8nOy%2BTcaCB-JnScZ5fp18Ja1U6ABe8KHZKyRQ%40mail.gmail.com.
