Examples of Environment


Examples of com.mcorrigal.matchingEngine.given.Environment

 
  private Environment environment;
 
  @Given("^a matching engine with an empty order book$")
  public void anEmptyOrderBook() {
    environment = new Environment();
  }
View Full Code Here

Examples of com.melitronic.domain.entity.Environment

    ecal.setTimeInMillis(System.currentTimeMillis() + (21*24*60*60*1000));
    ip.setEndTime(ecal);
    ip.setDeployment(deployment);
    PmDeployment.instance().persist(ip, em, context);
   
    Environment environment = new Environment();
    environment.setName("Env1");
    environment.setDescription("edededede");
    environment.setIp("123.23.3.123");
    PmDeployment.instance().persist(environment, em, context);
   
    EnvironmentUsage eu = new EnvironmentUsage();
    eu.setStartTime(scal);
    eu.setEndTime(ecal);
    eu.setImplementationPhase(ip);
    eu.setEnvironment(environment);
    eu.getProduct().add(product);
    product.getEnvironmentUsage().add(eu);
    PmDeployment.instance().persist(eu, em, context);
   
    ip = new ImplementationPhase();
    ip.setPhaseType(ImplementationPhaseType.INTEGRATION_TEST);
    scal = GregorianCalendar.getInstance();
    scal.setTimeInMillis(System.currentTimeMillis() + (22*24*60*60*1000));
    ip.setStartTime(scal);
    ecal = GregorianCalendar.getInstance();
    ecal.setTimeInMillis(System.currentTimeMillis() + (30*24*60*60*1000));
    ip.setEndTime(ecal);
    ip.setDeployment(deployment);
    PmDeployment.instance().persist(ip, em, context);
   
    environment = new Environment();
    environment.setName("Env2");
    environment.setDescription("wwwwwwwwww");
    environment.setIp("123.23.3.125");
    PmDeployment.instance().persist(environment, em, context);
   
    eu = new EnvironmentUsage();
    eu.setStartTime(scal);
    eu.setEndTime(ecal);
View Full Code Here

Examples of com.neemsoft.jmep.Environment

    CourseEditorEnv cev = uce.getCourseEditorEnv();
    if (cev != null) {
      translator = new PackageTranslator(PACKAGE, cev.getEditorEnvLocale());
    }

    env = new Environment();

    // constants: add for user convenience
    env.addConstant("true", 1);
    env.addConstant("false", 0);
View Full Code Here

Examples of com.redhat.ceylon.tools.new_.Environment

    Environment env(String... keyVals) {
        if (keyVals.length % 2 != 0) {
            throw new IllegalArgumentException();
        }
        Environment result = new Environment();
        for (int ii = 0; ii < keyVals.length; ii+=2) {
            result.put(keyVals[ii], keyVals[ii+1]);
        }
        return result;
    }
View Full Code Here

Examples of com.sleepycat.db.Environment

  config.setMessageHandler(new LoggingMessageHandler());
  config.setRunRecovery(true);
  config.setTransactional(true);
  config.setTxnWriteNoSync(!flushToDisk);
  try {
      env = new Environment(new File(directory), config);
  } catch (FileNotFoundException e) {
      throw new DbDatabaseException(
    "DataStore directory does not exist: " + directory);
  } catch (DatabaseException e) {
      throw convertException(e, false);
View Full Code Here

Examples of com.sleepycat.je.Environment

      loader.setConfig(config);
      loader.create();
      loader.start();

      /* Verify the database name by trying to open it. */
      Environment env = new Environment(new File(envHome), null);
      DatabaseConfig dbConfig = new DatabaseConfig();
      dbConfig.setTransactional(transactional);
      Database db = env.openDatabase(null, dbName, dbConfig);
      db.close();
      env.close();
   }
View Full Code Here

Examples of com.sun.enterprise.admin.cli.Environment

        // very difficult to see output from this process when part of restart-domain.
        // Normally there is no console.
        // There are **three** JVMs in a restart -- old server, new server, cli
        // we will not even see AS_DEBUG!
        if (DEBUG_MESSAGES_ON) {
            Environment env = new Environment();
            CLIUtil.writeCommandToDebugLog("restart-debug", env, new String[]{"DEBUG MESSAGE FROM RESTART JVM", s}, 99999);
        }
    }
View Full Code Here

Examples of com.tacitknowledge.flip.Environment

    private ContextManager contextManager;
    private Environment environment;
   
    @Before
    public void setUp() {
        environment = new Environment();
        environment.getContextProviders().add(new TestContextProvider());
        contextManager = new ContextManager(environment);
    }
View Full Code Here

Examples of com.yammer.dropwizard.config.Environment

    ConfigurationFactory<?> factory = ConfigurationFactory.forClass(
        service.getConfigurationClass(), new Validator(), service.getJacksonModules());
    configuration = (Configuration) factory.build(temporaryConfigFile);

    Environment environment = new Environment(service, configuration);
    service.initializeWithBundles(configuration, environment);

    server = new ServerFactory(configuration.getHttpConfiguration(),
        service.getName()).buildServer(environment);
View Full Code Here

Examples of de.hunsicker.jalopy.storage.Environment

        if (jalopySettings == null) {
            jalopySettings = new HashMap<String, Object>();
        }

        Environment env = Environment.getInstance();

        // Author

        author = GetterUtil.getString(
                (String)jalopySettings.get("author"), author);

        env.set("author", author);

        // File name

        env.set("fileName", file.getName());

        Convention convention = Convention.getInstance();

        String classMask = "/**\n * @author $author$\n*/";

        convention.put(
                ConventionKeys.COMMENT_JAVADOC_TEMPLATE_CLASS,
                env.interpolate(classMask));

        convention.put(
                ConventionKeys.COMMENT_JAVADOC_TEMPLATE_INTERFACE,
                env.interpolate(classMask));

        jalopy.format();

        String newContent = sb.toString();

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.