Skip to content

Commit

Permalink
Add git publisher tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Sep 22, 2020
1 parent 05563bf commit 50e8df9
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,20 @@ public void testUseBranch() {
assertFalse(unsupportedCommand.determineSupportForJGit());
}

@Test
public void testGitPublisherDisabled() {
/* Disabled git publisher is allowed to use JGit */
unsupportedCommand.gitPublisher(false);
assertTrue(unsupportedCommand.determineSupportForJGit());
}

@Test
public void testGitPublisher() {
/* Enabled git publisher must not use JGit */
unsupportedCommand.gitPublisher(true);
assertFalse(unsupportedCommand.determineSupportForJGit());
}

@Test
public void testDetermineSupportForJGit() {
/* Confirm default is true */
Expand Down

0 comments on commit 50e8df9

Please sign in to comment.