Beispiel #1
0
  protected static void logMessage(
      Class<? extends BaseCounter> classRef, Level level, String text) {

    if (logger == null) logger = Logger.getLogger(ClassUtil.getClassName(classRef));

    if (logger != null) logger.log(level, text);
  }
 @Test
 public void testEvents() throws URISyntaxException, MalformedURLException {
   new XPipeline(
           "Test pipeline for CodeSimplifierStep",
           new XBatch(
               new XBatchItem(
                   this.getClass().getResource("/test.xml").toURI(), "UTF-8", LocaleId.ENGLISH)),
           new RawDocumentToFilterEventsStep(new XMLFilter()),
           new XPipelineStep(
               new SegmentationStep(),
               new XParameter(
                   "sourceSrxPath", ClassUtil.getResourcePath(getClass(), "/Segmentation.srx"))),
           new EventLogger())
       .execute();
 }