Skip to content

Commit

Permalink
Fix test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Jan 15, 2025
1 parent e65548a commit c6d8a80
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ public class IconLabelProvider extends StaticAnalysisLabelProvider {
private final String smallIconUrl;
private final String largeIconUrl;

/**
* Creates a new label provider with the specified ID and name.
*
* @param id
* the ID (i.e., URL)
* @param name
* the name of the tool
*/
public IconLabelProvider(final String id, final String name) {
this(id, name, EMPTY_DESCRIPTION);
}

/**
* Creates a new label provider with the specified ID and name.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void shouldCreateFreestyleJobUsingJobDslAndVerifyIssueRecorderWithDefaultConfigu
assertThat(project).isNotNull();
assertThat(project).isInstanceOf(FreeStyleProject.class);

DescribableList<Publisher, Descriptor<Publisher>> publishers = ((FreeStyleProject) project).getPublishersList();
var publishers = ((FreeStyleProject) project).getPublishersList();
assertThat(publishers).hasSize(1);

Publisher publisher = publishers.get(0);
Expand All @@ -85,10 +85,11 @@ void shouldCreateFreestyleJobUsingJobDslAndVerifyIssueRecorderWithDefaultConfigu
assertThat(recorder.getBlameDisabled()).isFalse();
assertThat(recorder.getEnabledForFailure()).isFalse();
assertThat(recorder.getHealthy()).isEqualTo(0);
assertThat(recorder.getId()).isNull();
assertThat(recorder.getId()).isEmpty();
assertThat(recorder.getIcon()).isEmpty();
assertThat(recorder.getIgnoreQualityGate()).isFalse();
assertThat(recorder.getMinimumSeverity()).isEqualTo("LOW");
assertThat(recorder.getName()).isNull();
assertThat(recorder.getName()).isEmpty();
assertThat(recorder.getQualityGates()).hasSize(0);
assertThat(recorder.getSourceCodeEncoding()).isEmpty();
assertThat(recorder.getUnhealthy()).isEqualTo(0);
Expand Down

0 comments on commit c6d8a80

Please sign in to comment.