use of org.apache.karaf.features.FeaturesService in project ddf by codice.
the class ApplicationConfigInstallerTest method testFileNotValid.
/**
* Tests that when a file is not found, the post install start and post
* install stop features are NOT called.
*/
@Test
public void testFileNotValid() throws Exception {
FeaturesService featuresService = mock(FeaturesService.class);
ApplicationConfigInstaller configInstaller = getApplicationConfigInstaller(BAD_FILE, null, featuresService, START_FEATURE, STOP_FEATURE);
configInstaller.run();
// verify the post start and post stop features were not called
verify(featuresService, never()).installFeature(anyString(), any(EnumSet.class));
verify(featuresService, never()).uninstallFeature(anyString());
}
Aggregations