| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
- Broken since 2019 : 4be509e - The hookUrl setter is not recognized by the bindJSON code since the input parameter type change from URL to String The following test crashes with the previous code : ``` @test public void hookUrlShouldHaveAWriteMethod() throws Throwable { PropertyDescriptor hookUrlWrite = PropertyUtils.getPropertyDescriptor( new GitHubPluginConfig(new ArrayList<>()), "hookUrl" ); assertNotNull("hookUrl write method should exits", hookUrlWrite.getWriteMethod()); } ```
| Back | FazBrowse Home | New Git URL |
This PR fixes JENKINS-66079.
It is actually not possible to set hookUrl from the global config page since 2019. The hookUrl setter is not recognized by the bindJSON code since the input parameter type change from URL to String.
The following test crashes with the code prior to my changes :
@Test public void hookUrlShouldHaveAWriteMethod() throws Throwable { PropertyDescriptor hookUrlWrite = PropertyUtils.getPropertyDescriptor( new GitHubPluginConfig(new ArrayList<>()), "hookUrl" ); assertNotNull("hookUrl write method should exits", hookUrlWrite.getWriteMethod()); }Testing done
Re-enabled and modernized the test suite regarding global configs.
This change is