Skip to content

Commit

Permalink
Use short description by default
Browse files Browse the repository at this point in the history
Printing all modules status can be difficult to read for
projects will lots of modules.
  • Loading branch information
jcgay committed Feb 7, 2015
1 parent 3549927 commit 6be9df9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private boolean isWindows(String os) {

public static enum Property {
IMPLEMENTATION("notifier.implementation"),
SHORT_DESCRIPTION("notifier.message.short", "false"),
SHORT_DESCRIPTION("notifier.message.short", "true"),
NOTIFY_WITH("notifyWith");

private final String key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@ class ConfigurationParserTest {

Configuration result = parser.get(new Properties());

assertThat result.isShortDescription() isFalse()
assertThat result.isShortDescription() isTrue()
}

@Test
void 'should return configuration'() {

Properties properties = new Properties();
properties << [(IMPLEMENTATION.key()):('test')]
properties << [(Property.SHORT_DESCRIPTION.key()):('true')]
properties << [(Property.SHORT_DESCRIPTION.key()):('false')]

Configuration result = parser.get(properties)

assertThat result.getImplementation() isEqualTo 'test'
assertThat result.isShortDescription() isTrue()
assertThat result.isShortDescription() isFalse()
}

@Test
Expand Down

0 comments on commit 6be9df9

Please sign in to comment.