use of org.apache.oozie.sla.service.SLAService in project oozie by apache.
the class TestSLAService method testBasicService.
@Test
public void testBasicService() throws Exception {
Services services = Services.get();
SLAService slas = services.get(SLAService.class);
assertNotNull(slas);
assertTrue(SLAService.isEnabled());
services.destroy();
services = new Services();
Configuration conf = services.getConf();
conf.set(Services.CONF_SERVICE_EXT_CLASSES, "");
services.init();
assertFalse(SLAService.isEnabled());
}
Aggregations