Examples of MockEnvironment


Examples of barsuift.simLife.environment.MockEnvironment

    public void reset() {
        livingParts = new HashSet<LivingPart>();
        trees = new HashSet<Tree>();
        fallenLeaves = new HashSet<TreeLeaf>();
        creationMillis = 0;
        environment = new MockEnvironment();
        physics = new MockPhysics();
        synchronizer = new MockSynchronizerCore();
        date = new SimLifeDate();
        universe3D = new MockUniverse3D();
        state = new UniverseState();
View Full Code Here

Examples of barsuift.simLife.environment.MockEnvironment

        leafState = CoreDataCreatorForTests.createSpecificTreeLeafState();

        Percent lightRate = new Percent(70);
        mockSun = new MockSun();
        mockSun.setLuminosity(lightRate);
        MockEnvironment mockEnv = new MockEnvironment();
        mockEnv.setSun(mockSun);
        universe = new MockUniverse();
        universe.setEnvironment(mockEnv);

        leaf = new BasicTreeLeaf(universe, leafState);
        observerHelper = new ObservableTestHelper();
View Full Code Here

Examples of barsuift.simLife.environment.MockEnvironment

        leafState = CoreDataCreatorForTests.createSpecificTreeLeafState();

        BigDecimal lightRate = PercentHelper.getDecimalValue(70);
        mockSun = new MockSun();
        mockSun.setBrightness(lightRate);
        MockEnvironment mockEnv = new MockEnvironment();
        mockEnv.setSun(mockSun);
        universe = new MockUniverse();
        universe.setEnvironment(mockEnv);

        leaf = new BasicTreeLeaf(universe, leafState);
        publisherHelper = new PublisherTestHelper();
View Full Code Here

Examples of barsuift.simLife.environment.MockEnvironment

        leafState = CoreDataCreatorForTests.createSpecificTreeLeafState();

        BigDecimal lightRate = PercentHelper.getDecimalValue(70);
        mockSun = new MockSun();
        mockSun.setLuminosity(lightRate);
        MockEnvironment mockEnv = new MockEnvironment();
        mockEnv.setSun(mockSun);
        universe = new MockUniverse();
        universe.setEnvironment(mockEnv);

        leaf = new BasicTreeLeaf(universe, leafState);
        observerHelper = new ObservableTestHelper();
View Full Code Here

Examples of com.google.apphosting.api.MockEnvironment

  /**
   * Sets up {@link ApiProxy} with {@link MockEnvironment} and
   * {@link ApiProxyLocalImpl}.
   */
  public void setUp() {
    ApiProxy.setEnvironmentForCurrentThread(new MockEnvironment());
    ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(".")) {
      // nothing here
    });
  }
View Full Code Here

Examples of com.thetransactioncompany.cors.environment.MockEnvironment

 
  public void testEnvVarBasedConfig() {
   
    CORSConfigurationLoader configLoader = new CORSConfigurationLoader(new MockFilterConfig());

    MockEnvironment mockEnv = new MockEnvironment();
    mockEnv.setConfigurationFileName("cors-sample.configuration");
    configLoader.setEnvironment(mockEnv);
   
    CORSConfiguration c = null;

    try {
View Full Code Here

Examples of com.thetransactioncompany.cors.environment.MockEnvironment

 
  public void testEnvVarBasedConfig() {
   
    CORSConfigurationLoader configLoader = new CORSConfigurationLoader(new MockFilterConfig());

    MockEnvironment mockEnv = new MockEnvironment();
    mockEnv.setConfigurationFileName("cors-sample.configuration");
    configLoader.setEnvironment(mockEnv);
   
    CORSConfiguration c = null;

    try {
View Full Code Here

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

        } else {
            getLogger().debug("Resource not found " + resourceName);
        }

        SourceResolver resolver = (SourceResolver) getManager().lookup(SourceResolver.ROLE);
        MockEnvironment env = new MockEnvironment(resolver);

        String pathInfo = getWebappUrl();

        this.request = new CommandLineRequest(env,
                "",
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.manager.lookup(Processor.ROLE);
       
        CocoonComponentManager.enterEnvironment(
        env, this.manager, 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.manager.lookup(Processor.ROLE);
       
        CocoonComponentManager.enterEnvironment(
        env, this.manager, processor);
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.