Java Code Examples for hudson.model.Actionable#getActions()
The following examples show how to use
hudson.model.Actionable#getActions() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JobActionITest.java From warnings-ng-plugin with MIT License | 5 votes |
private void assertThatCheckstyleAndEclipseChartExist(final Actionable actionable, final boolean shouldChartBeVisible) { List<JobAction> jobActions = actionable.getActions(JobAction.class); assertThat(jobActions).hasSize(2); JobAction checkstyle; JobAction eclipse; if ("checkstyle".equals(jobActions.get(0).getUrlName())) { checkstyle = jobActions.get(0); eclipse = jobActions.get(1); } else { checkstyle = jobActions.get(1); eclipse = jobActions.get(0); } assertThat(eclipse.getTrendName()).isEqualTo(ECLIPSE); assertThat(eclipse.getIconFileName()).contains(ANALYSIS_ICON); assertThat(checkstyle.getTrendName()).isEqualTo(CHECKSTYLE); assertThat(checkstyle.getIconFileName()).contains(CHECKSTYLE_ICON); if (shouldChartBeVisible) { assertThatTrendChartIsVisible(eclipse); assertThatTrendChartIsVisible(checkstyle); } else { assertThatTrendChartIsHidden(eclipse); assertThatTrendChartIsHidden(checkstyle); } }
Example 2
Source File: JobActionITest.java From warnings-ng-plugin with MIT License | 4 votes |
private void assertThatAggregationChartDoesNotExists(final Actionable actionable) { List<AggregatedTrendAction> aggregatedTrendActions = actionable.getActions(AggregatedTrendAction.class); assertThat(aggregatedTrendActions).hasSize(0); }