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.constretto.spring.configuration.ConstrettoNameSpaceTest.java

@AfterClass
public static void clearTags() {
    System.clearProperty(DefaultConfigurationContextResolver.TAGS);
}

From source file:org.jboss.shrinkwrap.resolver.impl.maven.bootstrap.SystemPropertyPrecedenceTestCase.java

@BeforeClass
public static void initialize() {
    System.clearProperty("maven.repo.local"); // May conflict with release settings
    System.setProperty(MavenSettingsBuilder.ALT_USER_SETTINGS_XML_LOCATION, " "); // without space it will be
                                                                                  // ignored, and users settings
                                                                                  // will be used!
}

From source file:org.constretto.spring.namespacehandler.ImportWithDefaultResolverTest.java

@BeforeClass
public static void clearEnvironment() {
    System.clearProperty(DefaultAssemblyContextResolver.ASSEMBLY_KEY);
    ctx = null;
}

From source file:org.jboss.tools.central.internal.discovery.wizards.AbstractProxyWizardDiscoveryTest.java

@AfterClass
public static void afterClass() {
    System.clearProperty("org.jboss.tools.central.donotshow");
    System.clearProperty("org.eclipse.ui.testsDisableWorkbenchAutoSave");
}

From source file:org.apache.camel.example.reportincident.ReportIncidentRoutesClientTest.java

@AfterClass
public static void tearDownBeforeClass() {
    System.clearProperty("port");
}

From source file:fm.pattern.spin.config.SpinConfiguration.java

static void reset() {
    System.clearProperty("spin.config");
    instances = null;
    startupConfiguration = null;
}

From source file:org.iterx.util.SystemUtils.java

public static void setProperty(String key, String value) {

    if (value == null)
        System.clearProperty(key);
    else/*from   w  w  w  . ja  v a2s  . c  o  m*/
        System.setProperty(key, value);
}

From source file:org.geoserver.catalog.rest.StructuredCoverageStoresTest.java

@AfterClass
public static void cleanupTimeZone() {
    System.clearProperty("user.timezone");
}

From source file:org.springframework.cloud.stream.metrics.ApplicationMetricsExporterTests.java

@AfterClass
public static void unsetSystemProps() {
    System.clearProperty("SPRING_TEST_ENV_SYNTAX");
}

From source file:org.apache.kylin.jdbc.JDBCDriverTest.java

@AfterClass
public static void afterClass() throws Exception {
    stopJetty();/*from  ww  w .j av  a 2  s. c  o m*/
    staticCleanupTestMetadata();
    if (previousSpringProfile == null) {
        System.clearProperty(SPRING_PROFILE_PROPERTY);
    } else {
        System.setProperty(SPRING_PROFILE_PROPERTY, previousSpringProfile);
    }
}