Examples of addResourcePaths()


Examples of com.mockrunner.mock.web.MockServletContext.addResourcePaths()

  }

  @Test
  public void testListingPageStyled() throws Exception {
    MockServletContext context = new MockServletContext();
    context.addResourcePaths( "/", Arrays.asList( "test-module/" ) );
    context.addResourcePaths( "/test-module/", Arrays.asList( "themes.xml" ) );
    context.addResourcePaths( "/test-module/themes/onyx/", Arrays.asList( "styles.css" ) );
    File themesDotXML = new File( microPlatform.getFilePath() + "system/axis/themes.xml" );
    context.setResource( "/test-module/themes.xml", themesDotXML.toURI().toURL() );
    context.setResourceAsStream( "/test-module/themes.xml", new FileInputStream( themesDotXML ) );
View Full Code Here

Examples of com.mockrunner.mock.web.MockServletContext.addResourcePaths()

  @Test
  public void testListingPageStyled() throws Exception {
    MockServletContext context = new MockServletContext();
    context.addResourcePaths( "/", Arrays.asList( "test-module/" ) );
    context.addResourcePaths( "/test-module/", Arrays.asList( "themes.xml" ) );
    context.addResourcePaths( "/test-module/themes/onyx/", Arrays.asList( "styles.css" ) );
    File themesDotXML = new File( microPlatform.getFilePath() + "system/axis/themes.xml" );
    context.setResource( "/test-module/themes.xml", themesDotXML.toURI().toURL() );
    context.setResourceAsStream( "/test-module/themes.xml", new FileInputStream( themesDotXML ) );
    File styleDotSCC = new File( microPlatform.getFilePath() + "system/axis/themes/onyx/styles.css" );
View Full Code Here

Examples of com.mockrunner.mock.web.MockServletContext.addResourcePaths()

  @Test
  public void testListingPageStyled() throws Exception {
    MockServletContext context = new MockServletContext();
    context.addResourcePaths( "/", Arrays.asList( "test-module/" ) );
    context.addResourcePaths( "/test-module/", Arrays.asList( "themes.xml" ) );
    context.addResourcePaths( "/test-module/themes/onyx/", Arrays.asList( "styles.css" ) );
    File themesDotXML = new File( microPlatform.getFilePath() + "system/axis/themes.xml" );
    context.setResource( "/test-module/themes.xml", themesDotXML.toURI().toURL() );
    context.setResourceAsStream( "/test-module/themes.xml", new FileInputStream( themesDotXML ) );
    File styleDotSCC = new File( microPlatform.getFilePath() + "system/axis/themes/onyx/styles.css" );
    context.setResource( "/test-module/themes/onyx/styles.css", styleDotSCC.toURI().toURL() );
View Full Code Here

Examples of com.mockrunner.mock.web.MockServletContext.addResourcePaths()

  @Test
  public void testThemes() throws Exception {
    // setup mock context
    MockServletContext context = new MockServletContext();
    context.addResourcePaths( "/", Arrays.asList( "test-module/" ) );
    context.addResourcePaths( "/test-module/", Arrays.asList( "themes.xml" ) );
    File themesDotXML = new File( getSolutionPath() + "/system/themeplugin/themes.xml" );
    context.setResource( "/test-module/themes.xml", themesDotXML.toURI().toURL() );
    context.setResourceAsStream( "/test-module/themes.xml", new FileInputStream( themesDotXML ) );
    PentahoSystem.getApplicationContext().setContext( context );
View Full Code Here

Examples of com.mockrunner.mock.web.MockServletContext.addResourcePaths()

  @Test
  public void testThemes() throws Exception {
    // setup mock context
    MockServletContext context = new MockServletContext();
    context.addResourcePaths( "/", Arrays.asList( "test-module/" ) );
    context.addResourcePaths( "/test-module/", Arrays.asList( "themes.xml" ) );
    File themesDotXML = new File( getSolutionPath() + "/system/themeplugin/themes.xml" );
    context.setResource( "/test-module/themes.xml", themesDotXML.toURI().toURL() );
    context.setResourceAsStream( "/test-module/themes.xml", new FileInputStream( themesDotXML ) );
    PentahoSystem.getApplicationContext().setContext( context );
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.