--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-dev/9420553c-aaa6-45b6-b493-54e473b9e3ffn%40googlegroups.com.
In general, if you use Mockito in Jenkins tests, you should expect to be forced to edit existing test suites after even compatible changes to core or plugin dependencies.
It is safer to divide test code into true unit tests (no mocking framework) plus proper integration tests with `JenkinsRule` or one of its variants.
You need a valid Jenkins context to use this class. Simply removing @WithoutJenkins annotation from the test method should fix it.
In general, if you use Mockito in Jenkins tests, you should expect to be forced to edit existing test suites after even compatible changes to core or plugin dependencies. It is safer to divide test code into true unit tests (no mocking framework) plus proper integration tests with `JenkinsRule` or one of its variants.
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/nE3hFK8WV34/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1%2B9FKeeaP1LmyaFt%3DL%2BijdNOEjS0Yp3SdMMyUujXLM6w%40mail.gmail.com.
proper integration tests with `JenkinsRule` or one of its variants.By the variants you mean @WithJenkins @WithoutJenkins, right?
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2%3D%2BkSy1SZZP8kMOuuUNm5hubRT7CgPZFLZRfZ5PyfKog%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/nE3hFK8WV34/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-dev/CAH-zGCi7sSrVhG0_j02OFQTgczMP6vwZeh8iTuGpJ5gELF4dNA%40mail.gmail.com.
this was intentional but I couldn’t find it in the release notes