Skip to content

Commit

Permalink
Add descriptor test
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandella committed Sep 3, 2015
1 parent b8a2baa commit 65def73
Showing 1 changed file with 15 additions and 0 deletions.
Expand Up @@ -124,6 +124,21 @@ public boolean perform(AbstractBuild build, Launcher launcher, BuildListener bui
assertLogContains("Publishing coverage data to Harbormaster for 3 files", build);
}

@Test
public void testDescriptor() {
PhabricatorNotifierDescriptor descriptor = notifier.getDescriptor();

assertNull(descriptor.getCredentialsID());
assertNull(descriptor.getUberallsURL());
assertNull(descriptor.getCommentSize());
assertNull(descriptor.getCommentFile());

descriptor.setCommentFile("hello.world");
descriptor.setCommentSize("1000");
descriptor.setCredentialsID("not-a-real-uuid");
descriptor.setUberallsURL("http://uber.alls");
}

@Override
protected void addBuildStep() {
p.getPublishersList().add(notifier);
Expand Down

0 comments on commit 65def73

Please sign in to comment.