use of org.codice.mockito.StackCaptor in project ddf by codice.
the class ApplicationServiceBeanTest method testUninstallFeatureCallIsPrivileged.
@Test
public void testUninstallFeatureCallIsPrivileged() throws Exception {
StackCaptor stackCaptor = new StackCaptor();
stackCaptor.doCaptureStack().when(mockSyncInstaller).uninstallFeatures(ArgumentMatchers.<EnumSet<Option>>any(), anyString());
ApplicationServiceBean serviceBean = newApplicationServiceBean();
serviceBean.uninstallFeature("profile-name");
assertThat(stackCaptor.getStack(), stackContainsDoPrivilegedCall());
}
Aggregations