@Test public void testEnvironmentCheckEnabled() throws Exception { when(configurationSource.getProperty("extension.versioncheck.environment.enabled", false)) .thenReturn(false); assertFalse(mocker.getComponentUnderTest().isEnvironmentCheckEnabled()); when(configurationSource.getProperty("extension.versioncheck.environment.enabled", false)) .thenReturn(true); assertTrue(mocker.getComponentUnderTest().isEnvironmentCheckEnabled()); }
@Override public boolean isEnvironmentCheckEnabled() { return configurationSource.getProperty(ENVIRONMENT_CONFIGURATION_PREFIX + "enabled", false); }
DefaultVersionCheckConfiguration implements ExtensionVersionCheckConfiguration { @Override public boolean isEnvironmentCheckEnabled() { return configurationSource.getProperty(ENVIRONMENT_CONFIGURATION_PREFIX + "enabled", false); } }
DefaultVersionCheckConfiguration implements ExtensionVersionCheckConfiguration { @Override public boolean isEnvironmentCheckEnabled() { return configurationSource.getProperty(ENVIRONMENT_CONFIGURATION_PREFIX + "enabled", false); }  }
DefaultVersionCheckConfiguration implements ExtensionVersionCheckConfiguration { @Override public boolean isEnvironmentCheckEnabled() { return configurationSource.getProperty(ENVIRONMENT_CONFIGURATION_PREFIX + "enabled", false); }  @Override boolean isEnvironmentCheckEnabled(); @Override long environmentCheckInterval(); @Override Pattern allowedEnvironmentVersions(); }
DefaultVersionCheckConfiguration implements ExtensionVersionCheckConfiguration { @Override public boolean isEnvironmentCheckEnabled() { return configurationSource.getProperty(ENVIRONMENT_CONFIGURATION_PREFIX + "enabled", false); }  @Override boolean isEnvironmentCheckEnabled(); @Override long environmentCheckInterval(); @Override Pattern allowedEnvironmentVersions();  }