use of io.wring.model.Base in project wring by yegor256.
the class Entrance method main.
/**
* Main entry point.
* @param args Arguments
* @throws IOException If fails
*/
public static void main(final String... args) throws IOException {
final Base base = new DyBase();
try (final Routine routine = new Routine(base)) {
routine.start();
new FtCli(new TkApp(base), args).start(Exit.NEVER);
}
}
use of io.wring.model.Base in project wring by yegor256.
the class CycleTest method processesSinglePipe.
/**
* Cycle can process a single pipe.
* @throws Exception If some problem inside
*/
@Test
public void processesSinglePipe() throws Exception {
final Base base = new FkBase();
final Pipe pipe = new FkPipe();
new Cycle(base).exec(pipe);
}
use of io.wring.model.Base in project wring by yegor256.
the class CycleTest method processesSinglePipeWithBrokenJson.
/**
* Cycle can process a single pipe with broken JSOn.
* @throws Exception If some problem inside
*/
@Test
public void processesSinglePipeWithBrokenJson() throws Exception {
final Base base = new FkBase();
final Pipe pipe = new FkPipe(new Directives().add("pipe").add("urn").set("urn:test:1").up().add("json").set("{\"a\":\"/@[a-z0-9\\\\-]\\\\s+\"}").up().up());
new Cycle(base).exec(pipe);
}
Aggregations