Example usage for java.lang System clearProperty

List of usage examples for java.lang System clearProperty

Introduction

In this page you can find the example usage for java.lang System clearProperty.

Prototype

public static String clearProperty(String key) 

Source Link

Document

Removes the system property indicated by the specified key.

Usage

From source file:org.cloudfoundry.reconfiguration.play.ConfigurerTest.java

@After
public void tearDown() {
    System.clearProperty("db.default.url");
    System.clearProperty("db.default.user");
    System.clearProperty("db.default.password");
    System.clearProperty("db.default.driver");
    System.clearProperty("jpaplugin");
    System.clearProperty("cfjpaplugin");
}

From source file:org.apache.solr.cloud.ChaosMonkeyNothingIsSafeTest.java

@AfterClass
public static void afterSuperClass() {
    System.clearProperty("solr.autoCommit.maxTime");
    clearErrorHook();
}

From source file:com.thoughtworks.go.agent.bootstrapper.AgentBootstrapperFunctionalTest.java

@After
public void tearDown() throws Exception {
    FileUtils.deleteQuietly(AGENT_LAUNCHER_JAR);
    FileUtils.deleteQuietly(AGENT_BINARY_JAR);
    FileUtils.deleteQuietly(TFS_IMPL_JAR);
    FileUtils.deleteQuietly(AGENT_PLUGINS_ZIP);
    System.clearProperty(AgentBootstrapper.WAIT_TIME_BEFORE_RELAUNCH_IN_MS);
}

From source file:com.rmn.qa.aws.VmManagerTest.java

@After
public void clear() {
    System.clearProperty(AutomationConstants.AWS_ACCESS_KEY);
    System.clearProperty(AutomationConstants.AWS_PRIVATE_KEY);
    System.clearProperty("propertyFileLocation");
}

From source file:com.sap.hana.cloud.samples.jenkins.plugin.uitests.CloudJenkinsPluginTest.java

@AfterClass
public static void clearTestSettings() {
    System.clearProperty("com.sap.hana.cloud.samples.jenkins.common.ConfigurationRootDirectory");
    System.clearProperty("com.sap.hana.cloud.samples.jenkins.storage.FileStorage");
}

From source file:de.pdark.dsmp.ProxyDownloadTest.java

@After
public void tearDown() throws Exception {
    System.clearProperty("dsmp.conf");
}

From source file:fi.vm.sade.organisaatio.service.search.EmbeddedSolrServerFactory.java

public SolrServer getSolrServer() {
    log.info("**** Using embedded Solr server ****");
    if (StringUtils.isEmpty(solrHome)) {
        solrHome = "../organisaatio-service/src/main/resources/solr/";
    }//from   w ww  .  j ava  2 s.  co  m

    if (StringUtils.isEmpty(solrData)) {
        solrData = "target/solr-data";
    }

    if (server == null) {
        System.setProperty("solr.solr.home", solrHome);
        System.setProperty("solr.data.dir", solrData);
        CoreContainer.Initializer initializer = new CoreContainer.Initializer();
        CoreContainer coreContainer = initializer.initialize();
        server = new EmbeddedSolrServer(coreContainer, "organisaatiot");
        System.clearProperty("solr.solr.home");
        System.clearProperty("solr.data.dir");
    }
    return server;
}

From source file:com.kylinolap.common.util.LocalFileMetadataTestCase.java

@Override
public void cleanupTestMetadata() {
    try {//from  w w w  . j a v a  2 s.  c  o  m
        FileUtils.deleteDirectory(new File(tempTestMetadataUrl));
    } catch (IOException e) {
        throw new IllegalStateException("Can't delete directory " + tempTestMetadataUrl, e);
    }
    System.clearProperty(KylinConfig.KYLIN_CONF);
    KylinConfig.destoryInstance();
    this.tempTestMetadataUrl = null;
}

From source file:edu.acu.dropwizard.configuration.mongo.ServerAddressConverterTest.java

@After
public void resetConfigOverrides() {
    for (Enumeration<?> props = System.getProperties().propertyNames(); props.hasMoreElements();) {
        String keyString = (String) props.nextElement();
        if (keyString.startsWith("dw.")) {
            System.clearProperty(keyString);
        }//from ww  w  .  j a  v  a  2  s  .  com
    }
}

From source file:com.google.api.server.spi.request.AuthTest.java

@After
public void tearDown() {
    System.clearProperty(EnvUtil.ENV_APPENGINE_RUNTIME);
}