public static void basic_putenv(Object name, Object value) {
   String name_string = SmartEiffelRuntime.NullTerminatedBytesToString(name);
   String value_string = SmartEiffelRuntime.NullTerminatedBytesToString(value);
   Properties props = System.getProperties();
   props.put(name_string, value_string);
   System.setProperties(props);
   return;
 }
  public void setSystemProperties() {

    java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
    java.lang.System.setProperty("java.vm.vendor", "Oracle Corporation");
    java.lang.System.setProperty("java.specification.version", "1.8");
    java.lang.System.setProperty(
        "java.home", "/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre");
    java.lang.System.setProperty("java.awt.headless", "true");
    java.lang.System.setProperty("user.home", "/Users/hhildebrand");
    java.lang.System.setProperty("user.dir", "/Users/hhildebrand/git/Ultrastructure/model");
    java.lang.System.setProperty(
        "java.io.tmpdir", "/var/folders/_r/y4_0rwd16zgblwjq7b_tbhk80000gn/T/");
    java.lang.System.setProperty("awt.toolkit", "sun.lwawt.macosx.LWCToolkit");
    java.lang.System.setProperty("file.encoding", "UTF-8");
    java.lang.System.setProperty("file.separator", "/");
    java.lang.System.setProperty("java.awt.graphicsenv", "sun.awt.CGraphicsEnvironment");
    java.lang.System.setProperty("java.awt.printerjob", "sun.lwawt.macosx.CPrinterJob");
    java.lang.System.setProperty(
        "java.class.path",
        "/var/folders/_r/y4_0rwd16zgblwjq7b_tbhk80000gn/T/EvoSuite_pathingJar8602748439413877740.jar");
    java.lang.System.setProperty("java.class.version", "52.0");
    java.lang.System.setProperty(
        "java.endorsed.dirs",
        "/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/endorsed");
    java.lang.System.setProperty(
        "java.ext.dirs",
        "/Users/hhildebrand/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/ext:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java");
    java.lang.System.setProperty("java.library.path", "lib");
    java.lang.System.setProperty("java.runtime.name", "Java(TM) SE Runtime Environment");
    java.lang.System.setProperty("java.runtime.version", "1.8.0_45-b14");
    java.lang.System.setProperty("java.specification.name", "Java Platform API Specification");
    java.lang.System.setProperty("java.specification.vendor", "Oracle Corporation");
    java.lang.System.setProperty("java.vendor", "Oracle Corporation");
    java.lang.System.setProperty("java.vendor.url", "http://java.oracle.com/");
    java.lang.System.setProperty("java.version", "1.8.0_45");
    java.lang.System.setProperty("java.vm.info", "mixed mode");
    java.lang.System.setProperty("java.vm.name", "Java HotSpot(TM) 64-Bit Server VM");
    java.lang.System.setProperty(
        "java.vm.specification.name", "Java Virtual Machine Specification");
    java.lang.System.setProperty("java.vm.specification.vendor", "Oracle Corporation");
    java.lang.System.setProperty("java.vm.specification.version", "1.8");
    java.lang.System.setProperty("java.vm.version", "25.45-b02");
    java.lang.System.setProperty("line.separator", "\n");
    java.lang.System.setProperty("os.arch", "x86_64");
    java.lang.System.setProperty("os.name", "Mac OS X");
    java.lang.System.setProperty("os.version", "10.11.3");
    java.lang.System.setProperty("path.separator", ":");
    java.lang.System.setProperty("user.country", "US");
    java.lang.System.setProperty("user.language", "en");
    java.lang.System.setProperty("user.name", "hhildebrand");
    java.lang.System.setProperty("user.timezone", "America/Los_Angeles");
  }
Esempio n. 3
0
  protected Object doExecute() throws Exception {
    if (reset) {
      Properties props = getProperties();
      for (String key : getSystemProperties().keySet()) {
        props.remove(key);
      }
      for (String key : CommandLineConstants.KEYS) {
        props.remove(key);
      }
      for (Map.Entry<String, String> property : getInitialSystemProperties().entrySet()) {
        props.put(property.getKey(), property.getValue());
      }
      setSystemProperties(getInitialSystemProperties());
      setProperties(props);
    }

    printProperties("Initial Properties", getInitialSystemProperties(), false);
    printProperties("Command Properties", getCommandLineProperties(), true);
    printProperties("Custom Properties", getCustomProperties(), true);

    return null;
  }
 @AfterClass
 public static void clearEvoSuiteFramework() {
   Sandbox.resetDefaultSecurityManager();
   java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
 }