GitHubPRStatusBuilder extends Builder implements SimpleBuildStep { public GitHubPRMessage getStatusMessage() { return statusMessage; } @Restricted(NoExternalUse.class)  GitHubPRStatusBuilder(); @DataBoundConstructor  GitHubPRStatusBuilder(GitHubPRMessage statusMessage); GitHubPRMessage getStatusMessage(); @Override void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath workspace, @Nonnull Launcher launcher,
                        @Nonnull TaskListener listener); static final GitHubPRMessage DEFAULT_MESSAGE; }
@Test public void createBuilder() { GitHubPRStatusBuilder builder = new GitHubPRStatusBuilder(); assertEquals(DEFAULT_MESSAGE, builder.getStatusMessage().getContent()); }
@Test public void createBuilderWithNullMessage() { GitHubPRStatusBuilder builder = new GitHubPRStatusBuilder(null); assertEquals(DEFAULT_MESSAGE, builder.getStatusMessage().getContent()); }
@Test public void createBuilderWithNullMessageContent() { GitHubPRStatusBuilder builder = new GitHubPRStatusBuilder(new GitHubPRMessage(null)); assertEquals(DEFAULT_MESSAGE, builder.getStatusMessage().getContent()); }
@Test public void createBuilderWithEmptyMessage() { GitHubPRStatusBuilder builder = new GitHubPRStatusBuilder(new GitHubPRMessage("")); assertEquals(DEFAULT_MESSAGE, builder.getStatusMessage().getContent()); }
@Test public void createBuilderWithCustomMessage() { GitHubPRStatusBuilder builder = new GitHubPRStatusBuilder(new GitHubPRMessage(CUSTOM_MESSAGE)); assertEquals(CUSTOM_MESSAGE, builder.getStatusMessage().getContent()); }