Examples of MockEnvironment


Examples of org.apache.cocoon.environment.mock.MockEnvironment

        String result = "resource://org/apache/cocoon/transformation/i18n-result-2.xml";
        String src =  null;
       
        // enter & leave environment, as a manager is looked up using
        // the processing context stack
        MockEnvironment env = new
        MockEnvironment(null);
        Processor processor = (Processor)this.lookup(Processor.ROLE);
       
        CocoonComponentManager.enterEnvironment(
        env, new WrapperComponentManager(this.getManager()), processor);
View Full Code Here

Examples of org.apache.cocoon.environment.mock.MockEnvironment

        String src =  null;

        // enter & leave environment, as a manager is looked up using
        // the processing context stack
        MockEnvironment env = new
        MockEnvironment(null);
        Processor processor = (Processor)this.lookup(Processor.ROLE);

        CocoonComponentManager.enterEnvironment(
        env, new WrapperComponentManager(this.getManager()), processor);
View Full Code Here

Examples of org.apache.cocoon.environment.mock.MockEnvironment

        String result = "resource://org/apache/cocoon/transformation/cinclude-result-1.xml";
        String src =  null;
       
        // enter & leave environment, as a manager is looked up using
        // the processing context stack
        MockEnvironment env = new
        MockEnvironment(null);
        Processor processor = (Processor)this.lookup(Processor.ROLE);
       
        CocoonComponentManager.enterEnvironment(
        env, new WrapperComponentManager(this.getManager()), processor);
View Full Code Here

Examples of org.apache.cocoon.environment.mock.MockEnvironment

        String result = "resource://org/apache/cocoon/transformation/cinclude-result-2.xml";
        String src =  null;
       
        // enter & leave environment, as a manager is looked up using
        // the processing context stack
        MockEnvironment env = new
        MockEnvironment(null);
        Processor processor = (Processor)this.lookup(Processor.ROLE);
       
        CocoonComponentManager.enterEnvironment(
        env, new WrapperComponentManager(this.getManager()), processor);
View Full Code Here

Examples of org.apache.cocoon.environment.mock.MockEnvironment

        String result = "resource://org/apache/cocoon/transformation/cinclude-result-3.xml";
        String src =  null;
       
        // enter & leave environment, as a manager is looked up using
        // the processing context stack
        MockEnvironment env = new
        MockEnvironment(null);
        Processor processor = (Processor)this.lookup(Processor.ROLE);
       
        CocoonComponentManager.enterEnvironment(
        env, new WrapperComponentManager(this.getManager()), processor);
View Full Code Here

Examples of org.apache.cocoon.environment.mock.MockEnvironment

        String result = "resource://org/apache/cocoon/transformation/i18n-result-1.xml";
        String src =  null;
       
        // enter & leave environment, as a manager is looked up using
        // the processing context stack
        MockEnvironment env = new
        MockEnvironment(null);
        Processor processor = (Processor)this.lookup(Processor.ROLE);
       
        CocoonComponentManager.enterEnvironment(
        env, new WrapperComponentManager(this.getManager()), processor);
View Full Code Here

Examples of org.apache.cocoon.environment.mock.MockEnvironment

        String result = "resource://org/apache/cocoon/transformation/i18n-result-2.xml";
        String src =  null;
       
        // enter & leave environment, as a manager is looked up using
        // the processing context stack
        MockEnvironment env = new
        MockEnvironment(null);
        Processor processor = (Processor)this.lookup(Processor.ROLE);
       
        CocoonComponentManager.enterEnvironment(
        env, new WrapperComponentManager(this.getManager()), processor);
View Full Code Here

Examples of org.springframework.mock.env.MockEnvironment

    }
  }

  @Test
  public void propertyPlaceholderEnvironmentProperties() throws Exception {
    MockEnvironment env = new MockEnvironment().withProperty("foo", "spam");
    GenericXmlApplicationContext applicationContext = new GenericXmlApplicationContext();
    applicationContext.setEnvironment(env);
    applicationContext.load(new ClassPathResource("contextNamespaceHandlerTests-simple.xml", getClass()));
    applicationContext.refresh();
    Map<String, PlaceholderConfigurerSupport> beans = applicationContext
View Full Code Here

Examples of org.springframework.mock.env.MockEnvironment

    }

    {
      ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext();
      ctx.getEnvironment().setRequiredProperties("foo");
      ctx.setEnvironment(new MockEnvironment().withProperty("foo", "fooValue"));
      ctx.refresh(); // should succeed
    }
  }
View Full Code Here

Examples of org.springframework.mock.env.MockEnvironment

    }
  }

  @Test
  public void testPlaceholderBased() throws Exception {
    MockEnvironment env = new MockEnvironment();
    env.setProperty("serverName", "server");
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
    ctx.setEnvironment(env);
    ctx.register(PlaceholderBasedConfiguration.class);
    ctx.refresh();
    try {
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.