Thanks again, this advice is a great help!

On Tuesday, July 9, 2019 at 6:45:00 PM UTC-4, Gavin Mogan wrote:
>
> I'm just going to keep throwing out ideas. timestamp seems to be a 
> protected item in Run, so subclass!:
>
> class MyFreeStyleBuild extends FreeStyleBuild {
>     void setTimestamp(long timestamp) {
>       this.timestamp = timestamp;
>     }
> }
>
> class MyFreeStyleProject extends FreeStyleProject {
>     @Override
>     protected Class<FreeStyleBuild> getBuildClass() {                     
>                                                                             
>                                                                             
>                            
>         return MyFreeStyleBuild.class;
>     }
> }
>
> j.createProject(MyFreeStyleProject.class, "test");
> ((MyFreeStyleBuild) jRule.assertBuildStatus(Result.SUCCESS, 
> project.scheduleBuild2(0).get()))).setTimestamp(whatever you want);
> ...
>
>
>
> On Tue, Jul 9, 2019 at 3:20 PM Jesse Glick <[email protected] 
> <javascript:>> wrote:
>
>> On Tue, Jul 9, 2019 at 4:47 PM Ullrich Hafner <[email protected] 
>> <javascript:>> wrote:
>> > This topic reminds me of one of my architecture guidelines I’m 
>> presenting students in my testing lecture:
>> > An application should always provide a way to change (or inject) […]
>>
>> If you are enumerating design flaws in Jenkins APIs which hurt
>> testability, you are going to have a very full syllabus. :-)
>>
>> -- 
>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0duRR8fK%2B-6yLGyNifCEr-%3DvT_HqX8kZ2WzHLOG9cRzw%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/0db82c23-2b9c-4a6e-842d-7961c2ac2d4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to