How to reset DslContext between tests? Follow
As part of adopting Kotlin DSL for setting up our new Team City server, I'm adding unit tests to the configuration. However, the DslContext object specifically doesn't let me remove added properties between tests, which makes them order dependent. customParameters is private and only has add() and get() functions.
Please sign in to leave a comment.
Never mind, I can just mock out the DslContext property getter instead.
Hi, thanks for the feedback. We've added the `clearParameters` method, it will be available in the next release.