Examples of PipelineData


Examples of org.apache.turbine.pipeline.PipelineData

     * @exception ServletException a servlet exception.
     */
    public final void doGet(HttpServletRequest req, HttpServletResponse res)
            throws IOException, ServletException
    {
        PipelineData pipelineData = null;

        try
        {
            // Check to make sure that we started up properly.
            if (initFailure != null)
View Full Code Here

Examples of org.apache.turbine.pipeline.PipelineData

     * @param data The current RunData Object
     */
    private void refreshTool(Object tool, Object dataObject)
    {
        RunData data = null;
        PipelineData pipelineData = null;
        if (dataObject instanceof PipelineData)
        {
            pipelineData = (PipelineData)dataObject;
            data = getRunData(pipelineData);
            if (tool instanceof PipelineDataApplicationTool)
View Full Code Here

Examples of org.apache.turbine.pipeline.PipelineData

        // we just blithely cast to RunData as if another object
        // or null is passed in we'll throw an appropriate runtime
        // exception.
        if (data instanceof PipelineData)
        {
            PipelineData pipelineData = (PipelineData) data;
            RunData runData = (RunData)pipelineData;
            dataURI = new DataURI(runData);
        }
        else
        {
View Full Code Here

Examples of org.apache.turbine.pipeline.PipelineData

            log.debug("UITool scope is request");
            setSkin((RunData) data);
        }
        else if (data instanceof PipelineData)
        {
            PipelineData pipelineData = (PipelineData) data;
            RunData runData = (RunData)pipelineData;
            log.debug("UITool scope is request");
            setSkin(runData);
        }
        else if (data instanceof User)
View Full Code Here

Examples of org.apache.turbine.pipeline.PipelineData

        // we just blithely cast to RunData as if another object
        // or null is passed in we'll throw an appropriate runtime
        // exception.
        if (data instanceof PipelineData)
        {
            PipelineData pipelineData = (PipelineData) data;
            RunData runData = (RunData)pipelineData;
            templateURI = new TemplateURI(runData);
        }
        else
        {
View Full Code Here

Examples of org.apache.turbine.pipeline.PipelineData

   *
   * @throws Exception If something goes wrong with the unit test
   */
  public void testDoPerformBubblesException() throws Exception {
    RunData data = getRunData(request,response,config);
    PipelineData pipelineData = new DefaultPipelineData();
    Map runDataMap = new HashMap();
    runDataMap.put(RunData.class, data);
    pipelineData.put(RunData.class, runDataMap);
    data.setAction("VelocityActionThrowsException");
    try {
      ActionLoader.getInstance().exec(data, data.getAction());
      fail("Should have thrown an exception");
    } catch (Exception e) {
View Full Code Here

Examples of org.apache.turbine.pipeline.PipelineData

     */
  public void testActionEventBubblesException() throws Exception {
    // can't seem to figure out how to setup the Mock Request with the right parameters...
    request.setupAddParameter("eventSubmit_doCauseexception", "foo");
    RunData data = getRunData(request,response,config);
    PipelineData pipelineData = new DefaultPipelineData();
    Map runDataMap = new HashMap();
    runDataMap.put(RunData.class, data);
    pipelineData.put(RunData.class, runDataMap);
    data.setAction("VelocityActionThrowsException");
    data.getParameters().add("eventSubmit_doCauseexception", "foo");
    assertTrue(
      data.getParameters().containsKey("eventSubmit_doCauseexception"));
    try {
View Full Code Here

Examples of org.apache.turbine.pipeline.PipelineData

   */
  public void testDoPerformDoesntBubbleException() throws Exception {
    Turbine.getConfiguration().setProperty("action.event.bubbleexception",Boolean.FALSE);
    assertFalse(Turbine.getConfiguration().getBoolean("action.event.bubbleexception"));
    RunData data = getRunData(request,response,config);
    PipelineData pipelineData = new DefaultPipelineData();
    Map runDataMap = new HashMap();
    runDataMap.put(RunData.class, data);
    pipelineData.put(RunData.class, runDataMap);
    data.setAction("VelocityActionThrowsException");
    try {
      ActionLoader.getInstance().exec(data, data.getAction());

    } catch (Exception e) {
View Full Code Here

Examples of org.apache.turbine.pipeline.PipelineData

  public void testActionEventDoesntBubbleException() throws Exception {
    // can't seem to figure out how to setup the Mock Request with the right parameters...
    Turbine.getConfiguration().setProperty("action.event.bubbleexception",Boolean.FALSE);
    request.setupAddParameter("eventSubmit_doCauseexception", "foo");
    RunData data = getRunData(request,response,config);
    PipelineData pipelineData = new DefaultPipelineData();
    Map runDataMap = new HashMap();
    runDataMap.put(RunData.class, data);
    pipelineData.put(RunData.class, runDataMap);
    data.setAction("VelocityActionThrowsException");
    data.getParameters().add("eventSubmit_doCauseexception", "foo");
    assertTrue(
      data.getParameters().containsKey("eventSubmit_doCauseexception"));
View Full Code Here

Examples of org.apache.turbine.pipeline.PipelineData

      fail("Should NOT have thrown an exception:" + e.getMessage());
    }
  }
  public void testNonexistentActionCausesError() throws Exception {
      RunData data = getRunData(request,response,config);
    PipelineData pipelineData = new DefaultPipelineData();
    Map runDataMap = new HashMap();
    runDataMap.put(RunData.class, data);
    pipelineData.put(RunData.class, runDataMap);
    data.setAction("ImaginaryAction");
    try {
      ActionLoader.getInstance().exec(data, "boo");
      fail("Should have thrown an exception");
    } catch (Exception e) {
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.