Examples of PipelineContext


Examples of org.geomajas.service.pipeline.PipelineContext

  @Test
  public void extensionTest() throws Exception {
    StringAttribute response = new StringAttribute("bla");

    PipelineContext context = pipelineService.createContext();
    context.put("start", "start");
    pipelineService.execute("hookedTest", "base", context, response);
    Assert.assertEquals("starts1s2", response.getValue());

    context.put("start", "start");
    pipelineService.execute("hookedTest", "delegate2", context, response);
    Assert.assertEquals("starts1pps2ps2s2", response.getValue());

    context.put("start", "start");
    pipelineService.execute("hookedTest", "delegate", context, response);
    Assert.assertEquals("starts1ps2s2", response.getValue());
  }
View Full Code Here

Examples of org.geomajas.service.pipeline.PipelineContext

  }
 
  @Test
  public void interceptorTest() throws Exception {
    StringAttribute response = new StringAttribute("bla");
    PipelineContext context = pipelineService.createContext();
    pipelineService.execute("interceptorTest1", "base", context, response);
    Assert.assertEquals("blabeforei1s1s2afteri1", response.getValue());
  }
View Full Code Here

Examples of org.geomajas.service.pipeline.PipelineContext

  }
 
  @Test
  public void interceptorTestNested() throws Exception {
    StringAttribute response = new StringAttribute("bla");
    PipelineContext context = pipelineService.createContext();
    pipelineService.execute("interceptorTest2", "base", context, response);
    Assert.assertEquals("blabeforei1beforei2s1afteri2s2afteri1", response.getValue());
  }
View Full Code Here

Examples of org.geomajas.service.pipeline.PipelineContext

  }
 
  @Test
  public void interceptorTestSkip() throws Exception {
    StringAttribute response = new StringAttribute("bla");
    PipelineContext context = pipelineService.createContext();
    pipelineService.execute("interceptorTest3", "base", context, response);
    Assert.assertEquals("blas2", response.getValue());
  }
View Full Code Here

Examples of org.geomajas.service.pipeline.PipelineContext

  }

  @Test
  public void interceptorTestBoundaries() throws Exception {
    StringAttribute response = new StringAttribute("bla");
    PipelineContext context = pipelineService.createContext();
    pipelineService.execute("interceptorTest4", "base", context, response);
    Assert.assertEquals("bla_before_s1s2_after_", response.getValue());
  }
View Full Code Here

Examples of org.geomajas.service.pipeline.PipelineContext

  }

  @Test
  public void interceptorTestExecutionModeAll() throws Exception {
    StringAttribute response = new StringAttribute("bla");
    PipelineContext context = pipelineService.createContext();
    pipelineService.execute("interceptorExecutionMode1", "base", context, response);
    Assert.assertEquals("bla_before_s1_after_s2", response.getValue());
  }
View Full Code Here

Examples of org.geomajas.service.pipeline.PipelineContext

  }

  @Test
  public void interceptorTestExecutionSkipSteps() throws Exception {
    StringAttribute response = new StringAttribute("bla");
    PipelineContext context = pipelineService.createContext();
    pipelineService.execute("interceptorExecutionMode2", "base", context, response);
    Assert.assertEquals("bla_before__after_s2", response.getValue());
  }
View Full Code Here

Examples of org.geomajas.service.pipeline.PipelineContext

  }

  @Test
  public void interceptorTestExecutionModeStepsNotAfter() throws Exception {
    StringAttribute response = new StringAttribute("bla");
    PipelineContext context = pipelineService.createContext();
    pipelineService.execute("interceptorExecutionMode3", "base", context, response);
    Assert.assertEquals("bla_before_s1s2", response.getValue());
  }
View Full Code Here

Examples of org.geomajas.service.pipeline.PipelineContext

  }

  @Test
  public void interceptorTestExecutionModeNone() throws Exception {
    StringAttribute response = new StringAttribute("bla");
    PipelineContext context = pipelineService.createContext();
    pipelineService.execute("interceptorExecutionMode4", "base", context, response);
    Assert.assertEquals("bla_before_s2", response.getValue());
  }
View Full Code Here

Examples of org.geomajas.service.pipeline.PipelineContext

  }

  @Test
  public void testComplexInterceptorCombination() throws Exception {
    StringAttribute response = new StringAttribute("*");
    PipelineContext context = pipelineService.createContext();
    pipelineService.execute("complexPipeline", "base", context, response);
    Assert.assertEquals("*([s1s2]{<s3>s4})", response.getValue());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.