@Test public void missingMandatoryParametersShouldReturnTrueIfApiAccessKeyIsMissing() throws Exception { settings.removeProperty(RedmineSettings.API_ACCESS_KEY); redmineSettings = new RedmineSettings(settings); assertThat(redmineSettings.missingMandatoryParameters(), is(true)); }
@Test public void missingMandatoryParametersShouldReturnTrueIfProjectKeyIsMissing() throws Exception { settings.removeProperty(RedmineSettings.PROJECT_KEY); redmineSettings = new RedmineSettings(settings); assertThat(redmineSettings.missingMandatoryParameters(), is(true)); }
@Test public void missingMandatoryParametersShouldReturnFalse() throws Exception { assertThat(redmineSettings.missingMandatoryParameters(), is(false)); }