I will investigate this further, thanks for pointing this implementation 
out to me.

On Monday, July 8, 2019 at 1:52:40 PM UTC-4, Jesse Glick wrote:
>
> On Mon, Jul 8, 2019 at 1:39 PM 'Benjamin Beggs' via Jenkins Developers 
> <[email protected] <javascript:>> wrote: 
> > Do you have an example of a similar implementation for unit testing 
> using jenkinsrule? I may try just porting the tests over to this. 
>
> I would definitely advise using `JenkinsRule` over mocking frameworks. 
> Slower, but much more realistic (and much more likely to continue 
> running after internal refactorings). Example: 
>
>
> https://github.com/jenkinsci/jenkins/blob/a6f5b2b1288d15cd2ea5c2fd9b8916e6397bf795/test/src/test/java/hudson/tasks/LogRotatorTest.java#L67-L82
>  
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/992cd951-6e94-4ca5-933b-7c8e85418ded%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to