-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE JENKINS-25280] TestObject has no getFullDisplayName #3
Conversation
use displayName not fullDisplayName which does not exist.
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
Does not actually pass tests, but I am working on an alternate fix. |
…he overview there is no such mothod getFullDisplayName in a TestObject - only getDisplayName Change-Id: Idd454be00a22ee3c93f661a3ee3ae322a25c271d
So now there is: |
The test failure seemed unrelated and was failing in the previous change. |
The test failure was reproducible for me until I adjusted the fix. |
Why not fix jelly and use methods defined in interface/abstract? |
@daniel-beck found possible example https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/hudson/diagnosis/OldDataMonitor/manage.jelly#L87 |
Because the relevant method was not defined in a sufficiently abstract class, only on certain subclasses specific to JUnit.
Yes I considered that idiom, reliant on dynamic/duck typing, but preferred the simpler and more comprehensible fix which would work even if Jelly scripts were rewritten to some statically-typed language. |
use displayName not fullDisplayName which does not exist on generic TestObjects.