Java Code Examples for hudson.model.Result#NOT_BUILT
The following examples show how to use
hudson.model.Result#NOT_BUILT .
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: CardBuilderTest.java From office-365-connector-plugin with Apache License 2.0 | 6 votes |
@Test public void calculateStatus_OnSuccess_ReturnsSuccess() { // given Result lastResult = Result.SUCCESS; boolean isRepeatedFailure = false; Result[] previousResults = {Result.SUCCESS, Result.NOT_BUILT, Result.ABORTED}; for (Result previousResult : previousResults) { // when String status = cardBuilder.calculateStatus(lastResult, previousResult, isRepeatedFailure); // then assertThat(status).isEqualTo("Build Success"); } }
Example 2
Source File: CardBuilderTest.java From office-365-connector-plugin with Apache License 2.0 | 6 votes |
@Test public void calculateSummary_OnSuccess_ReturnsSuccess() { // given Result lastResult = Result.SUCCESS; boolean isRepeatedFailure = false; Result[] previousResults = {Result.SUCCESS, Result.NOT_BUILT, Result.ABORTED}; for (Result previousResult : previousResults) { // when String status = cardBuilder.calculateSummary(lastResult, previousResult, isRepeatedFailure); // then assertThat(status).isEqualTo("Success"); } }
Example 3
Source File: CardBuilderTest.java From office-365-connector-plugin with Apache License 2.0 | 5 votes |
@Test public void calculateStatus_OnUnsupportedResult_ReturnsResultName() { // given Result lastResult = Result.NOT_BUILT; boolean isRepeatedFailure = true; Result previousResult = null; // when String status = cardBuilder.calculateStatus(lastResult, previousResult, isRepeatedFailure); // then assertThat(status).isEqualTo(lastResult.toString()); }
Example 4
Source File: CardBuilderTest.java From office-365-connector-plugin with Apache License 2.0 | 5 votes |
@Test public void calculateSummary_OnUnsupportedResult_ReturnsResultName() { // given Result lastResult = Result.NOT_BUILT; boolean isRepeatedFailure = true; Result previousResult = null; // when String status = cardBuilder.calculateSummary(lastResult, previousResult, isRepeatedFailure); // then assertThat(status).isEqualTo(lastResult.toString()); }
Example 5
Source File: CardBuilderTest.java From office-365-connector-plugin with Apache License 2.0 | 5 votes |
@Test public void getCardThemeColor_OnNotBuiltResult_ReturnsBallColor() { // given Result notBuiltResult = Result.NOT_BUILT; String ballColorString = Result.NOT_BUILT.color.getHtmlBaseColor(); // when String themeColor = Deencapsulation.invoke(CardBuilder.class, "getCardThemeColor", notBuiltResult); // then assertThat(themeColor).isEqualToIgnoringCase(ballColorString); }
Example 6
Source File: DecisionMaker.java From office-365-connector-plugin with Apache License 2.0 | 4 votes |
private boolean isNotifyNotBuilt(Result result, Webhook webhook) { return webhook.isNotifyNotBuilt() && result == Result.NOT_BUILT; }
Example 7
Source File: CurrentBuildStateTest.java From DotCi with MIT License | 4 votes |
@Test public void should_be_building_before_post_production_state() { CurrentBuildState currentBuildState = new CurrentBuildState("NOT_STARTED", Result.NOT_BUILT); assertTrue(currentBuildState.isBuilding()); }
Example 8
Source File: NullBuildView.java From jenkins-build-monitor-plugin with MIT License | 4 votes |
@Override public Result result() { return Result.NOT_BUILT; }