Search in sources :

Example 1 with ModuleDisableProcessor

use of eu.bcvsolutions.idm.core.model.event.processor.module.ModuleDisableProcessor in project CzechIdMng by bcvsolutions.

the class DefaultModuleServiceUnitTest method testIsDisableable.

@Test(expected = ModuleNotDisableableException.class)
public void testIsDisableable() {
    ModuleDisableProcessor disableProcessor = new ModuleDisableProcessor();
    ModuleDescriptorDto moduleDescriptor = new ModuleDescriptorDto(ModuleDescriptorOne.MODULE_ID);
    moduleDescriptor.setDisableable(false);
    // 
    disableProcessor.process(new ModuleDescriptorEvent(ModuleDescriptorEventType.DISABLE, moduleDescriptor));
}
Also used : ModuleDisableProcessor(eu.bcvsolutions.idm.core.model.event.processor.module.ModuleDisableProcessor) ModuleDescriptorEvent(eu.bcvsolutions.idm.core.api.event.ModuleDescriptorEvent) ModuleDescriptorDto(eu.bcvsolutions.idm.core.api.dto.ModuleDescriptorDto) AbstractVerifiableUnitTest(eu.bcvsolutions.idm.test.api.AbstractVerifiableUnitTest) Test(org.junit.Test)

Aggregations

ModuleDescriptorDto (eu.bcvsolutions.idm.core.api.dto.ModuleDescriptorDto)1 ModuleDescriptorEvent (eu.bcvsolutions.idm.core.api.event.ModuleDescriptorEvent)1 ModuleDisableProcessor (eu.bcvsolutions.idm.core.model.event.processor.module.ModuleDisableProcessor)1 AbstractVerifiableUnitTest (eu.bcvsolutions.idm.test.api.AbstractVerifiableUnitTest)1 Test (org.junit.Test)1