Package org.pentaho.platform.plugin.action.builtin

Examples of org.pentaho.platform.plugin.action.builtin.SubActionComponent


  }

  public void testJcrPaths() {
    startTest();

    SubActionComponent c = new SubActionComponent();

    final String PATH = "/bi-developers/reporting/myaction.xaction";

    String value = c.buildActionPath( "", "bi-developers/reporting/myaction.xaction", "" );
    assertEquals( PATH, value );

    value = c.buildActionPath( null, "bi-developers/reporting/myaction.xaction", "" );
    assertEquals( PATH, value );

    value = c.buildActionPath( "", "bi-developers/reporting/myaction.xaction", null );
    assertEquals( PATH, value );

    value = c.buildActionPath( null, "bi-developers/reporting/myaction.xaction", null );
    assertEquals( PATH, value );

    value = c.buildActionPath( null, "/bi-developers/reporting/myaction.xaction", null );
    assertEquals( PATH, value );

    value = c.buildActionPath( "bi-developers", "/reporting/myaction.xaction", null );
    assertEquals( PATH, value );

    value = c.buildActionPath( "bi-developers", "reporting", "myaction.xaction" );
    assertEquals( PATH, value );

    value = c.buildActionPath( "/bi-developers", "/reporting", "/myaction.xaction" );
    assertEquals( PATH, value );

    value = c.buildActionPath( "bi-developers", "/reporting", "/myaction.xaction" );
    assertEquals( PATH, value );

    value = c.buildActionPath( "bi-developers", "reporting", "/myaction.xaction" );
    assertEquals( PATH, value );

    value = c.buildActionPath( "", "bi-developers/reporting", "myaction.xaction" );
    assertEquals( PATH, value );

    value = c.buildActionPath( "\\bi-developers", "reporting", "myaction.xaction" );
    assertEquals( PATH, value );

    value = c.buildActionPath( "\\\\//bi-developers", "\\reporting", "\\myaction.xaction" );
    System.out.println( value );
    assertEquals( PATH, value );

    finishTest();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.plugin.action.builtin.SubActionComponent

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.