You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@RegisterExtension
JerseyExtension jerseyExtension = new JerseyExtension(this::configureJersey);
(apologies I haven't yet had a chance to add a failing test for this)
The text was updated successfully, but these errors were encountered:
hanleyt
changed the title
URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD: should be ignored on test class fields annotated with JUnit5's @RegisterExtension
URF_UNREAD_FIELD: should be ignored on test class fields annotated with JUnit5's @RegisterExtension
Feb 28, 2018
I would prefer a configurable list of annotations that that tell SpotBugs to ignore this rule for a given field. @xmlelement and @SerializedName also define that the field value is used. And in the past, I have already written my own tools that access fields via annotations.
JUnit 5.1 allows you to register an extension programmatically by adding a field to your class as shown below. Similiar to JUnit4s Rule/ClassRule.
(apologies I haven't yet had a chance to add a failing test for this)
The text was updated successfully, but these errors were encountered: