Package com.gentics.cr

Examples of com.gentics.cr.RequestProcessor


    CRResolvableBean bean;
    if (path != null && !path.equals("")) {
      bean = config.getNewRequestProcessorInstance(1).getFirstMatchingResolvable(
          new CRRequest("object.filename == '" + name + "' AND object.pub_dir == '" + path + "'"));
    } else {
      RequestProcessor rp = config.getNewRequestProcessorInstance(1);
      assertNotNull("Cannot get RequestProcessor from config", rp);
      bean = rp.getFirstMatchingResolvable(new CRRequest("object.filename == '" + name + "'"));
    }
    assertEquals("The contents of the file do not match the content of the RequestProcessor. Therefore the file was not updated.",
        bean.get("binarycontent"), filecontent);
  }
View Full Code Here

TOP

Related Classes of com.gentics.cr.RequestProcessor

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.