Add tests for help option fix
@@ -36,6 +36,7 @@ public class CliDelegateTest {
assertThat(result).isNotNull();
assertThat(result.getConfig()).isNotPresent();
assertThat(result.getStatus()).isEqualTo(0);
+ assertThat(result.isHelpOn()).isTrue();
}
@@ -49,6 +50,7 @@ public class CliDelegateTest {
assertThat(result).isNotNull();
assertThat(result.getConfig().get()).isSameAs(cliDelegate.getConfig());
assertThat(result.getStatus()).isEqualTo(0);
+ assertThat(result.isHelpOn()).isFalse();
}
@Test(expected = FileNotFoundException.class)
@@ -88,8 +90,8 @@ public class CliDelegateTest {
assertThat(result).isNotNull();
assertThat(result.getStatus()).isEqualTo(0);
-
assertThat(result.getConfig()).isNotNull();
+ assertThat(result.isHelpOn()).isFalse();
}
