Package com.github.dandelion.core

Examples of com.github.dandelion.core.Context


  @Before
  public void createHtmlTable() {
    mockServletContext = new MockServletContext();
    mockPageContext = new MockPageContext(mockServletContext);
    request = (HttpServletRequest) mockPageContext.getRequest();
    request.setAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE, new Context(new MockFilterConfig()));
    response = (HttpServletResponse) mockPageContext.getResponse();
    System.setProperty(DandelionConfig.DANDELION_MODE.getName(), DandelionMode.DEVELOPMENT.toString());
  }
View Full Code Here


  private HtmlColumn firstColumn;

  @Before
  public void createMainGenerator() {
    request = new MockHttpServletRequest();
    request.setAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE, new Context(new MockFilterConfig()));
    response = new MockHttpServletResponse();
    generator = new DatatablesGenerator();
  }
View Full Code Here

  public ExpectedException exception = ExpectedException.none();

  @Before
  public void setup() {
    request = new MockHttpServletRequest();
    request.setAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE, new Context(new MockFilterConfig()));
  }
View Full Code Here

  public void setup() {
    System.clearProperty(StandardConfigurationLoader.DANDELION_CONFIGURATION);
    String path = new File("src/test/resources/dandelion-test/asset-query/".replace("/", File.separator))
    .getAbsolutePath();
    System.setProperty(StandardConfigurationLoader.DANDELION_CONFIGURATION, path);
    context = new Context(new MockFilterConfig());
   
    request = new MockHttpServletRequest();
    request.setContextPath("/context");
    request.setAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE, context);
  }
View Full Code Here

  @Before
  public void setup() {
    request = new MockHttpServletRequest();
    request.setRequestURI("/context/page.html");
    request.setContextPath("/context");
    request.setAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE, new Context(new MockFilterConfig()));
  }
View Full Code Here

  protected ProcessingContext processingContext;
  protected Context context;
 
  @Before
  public void setup(){
    context = new Context(new MockFilterConfig());
   
    MockHttpServletRequest request = new MockHttpServletRequest();
    request.setContextPath("/context-path");
   
    Asset asset = new Asset();
View Full Code Here

  @Before
  public void setup() {
    request = new MockHttpServletRequest();
    request.setContextPath("/context");
    request.setAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE, new Context(new MockFilterConfig()));
  }
View Full Code Here

  private MockHttpServletRequest request;
  private Context context;

  @Before
  public void setup() {
    context = new Context(new MockFilterConfig());
    request = new MockHttpServletRequest();
    request.setContextPath("/context");
    request.setAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE, context);
    assetMapper = new AssetMapper(request, context);
  }
View Full Code Here

  public ExpectedException exception = ExpectedException.none();
 
  @Before
  public void setup() {
    request = new MockHttpServletRequest();
    request.setAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE, new Context(new MockFilterConfig()));
  }
View Full Code Here

  private MockHttpServletRequest request;

  @Before
  public void setup() {
    request = new MockHttpServletRequest();
    request.setAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE, new Context(new MockFilterConfig()));
  }
View Full Code Here

TOP

Related Classes of com.github.dandelion.core.Context

Copyright © 2018 www.massapicom. 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.