use of org.apache.oozie.service.Services in project oozie by apache.
the class TestWorkflowActionKillXCommand method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
services = new Services();
services.init();
}
use of org.apache.oozie.service.Services in project oozie by apache.
the class TestWorkflowKillXCommand method testChildId.
public void testChildId() throws Exception {
services.destroy();
setSystemProperty(UUIDService.CONF_GENERATOR, "counter");
services = new Services();
services.init();
UUIDService uuid = services.get(UUIDService.class);
String id = uuid.generateId(ApplicationType.WORKFLOW);
String childId = uuid.generateChildId(id, "a");
assertEquals(id, uuid.getId(childId));
assertEquals("a", uuid.getChildName(childId));
services.destroy();
setSystemProperty(UUIDService.CONF_GENERATOR, "random");
services = new Services();
services.init();
uuid = services.get(UUIDService.class);
id = uuid.generateId(ApplicationType.WORKFLOW);
childId = uuid.generateChildId(id, "a");
assertEquals(id, uuid.getId(childId));
assertEquals("a", uuid.getChildName(childId));
}
use of org.apache.oozie.service.Services in project oozie by apache.
the class TestWorkflowKillXCommand method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
services = new Services();
services.init();
}
use of org.apache.oozie.service.Services in project oozie by apache.
the class TestWorkflowNotificationXCommand method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
setSystemProperty(NotificationXCommand.NOTIFICATION_URL_CONNECTION_TIMEOUT_KEY, "50");
Services services = new Services();
services.init();
container = new EmbeddedServletContainer("blah");
container.addServletEndpoint("/hang/*", HangServlet.class);
callbackServlet = new CallbackServlet();
container.addServletEndpoint("/callback/*", callbackServlet);
container.start();
}
use of org.apache.oozie.service.Services in project oozie by apache.
the class TestCodecFactory method setUp.
@Override
@Before
protected void setUp() throws Exception {
super.setUp();
services = new Services();
services.getConf().set(CodecFactory.COMPRESSION_OUTPUT_CODEC, GzipCompressionCodec.CODEC_NAME);
services.init();
}
Aggregations