List of usage examples for java.lang System clearProperty
public static String clearProperty(String key)
From source file:org.apache.camel.language.xpath.XPathLanguageDefaultSettingsTest.java
@Override public void tearDown() throws Exception { if (oldPropertyValue != null) { System.setProperty(KEY, oldPropertyValue); } else {/* www . ja v a 2 s . com*/ System.clearProperty(KEY); } super.tearDown(); }
From source file:org.nuxeo.launcher.config.AbstractConfigurationTest.java
@After public void tearDown() { FileUtils.deleteQuietly(nuxeoHome);//from w w w.j a va2s. co m System.clearProperty(ConfigurationGenerator.NUXEO_CONF); System.clearProperty(Environment.NUXEO_HOME); System.clearProperty(Environment.NUXEO_DATA_DIR); System.clearProperty(Environment.NUXEO_LOG_DIR); }
From source file:com.yahoo.athenz.common.server.db.DataSourceFactoryTest.java
@Test public void testCreateDataSourceWithFactory() { System.setProperty(DataSourceFactory.ATHENZ_PROP_DBPOOL_MAX_TTL, "10000"); MockConnectionFactory connectionFactory = new MockConnectionFactory(); PoolableDataSource src = DataSourceFactory.create(connectionFactory); assertNotNull(src);//ww w. j a v a2 s . c o m System.clearProperty(DataSourceFactory.ATHENZ_PROP_DBPOOL_MAX_TTL); }
From source file:com.talis.jersey.apitest.ServerAgentHeaderAndLoggingFilterAcceptanceTest.java
@After public void tearDown() throws Exception { System.clearProperty(GenericServerInfoModule.SERVER_IDENTIFIER_PROPERTY); }
From source file:org.apache.solr.client.solrj.TestLBHttpSolrClient.java
@AfterClass public static void afterClass() { if (savedFactory == null) { System.clearProperty("solr.directoryFactory"); } else {// www . j a va2 s. c o m System.setProperty("solr.directoryFactory", savedFactory); } System.clearProperty("tests.shardhandler.randomSeed"); }
From source file:org.nuxeo.launcher.config.ConfigurationGeneratorTest.java
@Override @After/*from w ww . j a v a2 s . c o m*/ public void tearDown() { super.tearDown(); System.clearProperty("jboss.home.dir"); System.clearProperty("java.net.preferIPv4Stack"); System.clearProperty("java.net.preferIPv6Addresses"); }
From source file:it.cnr.missioni.connector.basic.MissioniBasicConnectorTest.java
@AfterClass public static void afterClass() { System.clearProperty(CORE_CONNECTOR_KEY); }
From source file:org.eclipse.ecr.core.storage.sql.testlib.DatabaseH2.java
@Override public void tearDown() throws SQLException { if (origUrl == null) { System.clearProperty(URL_PROPERTY); } else {//ww w.java2 s. c om System.setProperty(URL_PROPERTY, origUrl); } Connection connection = DriverManager.getConnection(url, System.getProperty(USER_PROPERTY), System.getProperty(PASSWORD_PROPERTY)); Statement st = connection.createStatement(); String sql = "SHUTDOWN"; log.trace(sql); st.execute(sql); st.close(); connection.close(); }
From source file:org.kie.server.services.impl.KieServerImplInitTest.java
@After public void cleanUp() { if (kieServer != null) { kieServer.destroy();/*from w w w .j a v a 2 s . co m*/ } KieServerEnvironment.setServerId(origServerId); System.clearProperty(KieServerConstants.KIE_SERVER_STARTUP_STRATEGY); StartupStrategyProvider.clear(); }
From source file:org.codice.ddf.commands.solr.TestBackupCommand.java
@After public void after() { consoleOutput.resetSystemOut();//w ww . j a v a2 s .c o m if (cipherSuites != null) { System.setProperty("https.cipherSuites", cipherSuites); } else { System.clearProperty("https.cipherSuites"); } if (protocols != null) { System.setProperty("https.protocols", protocols); } else { System.clearProperty("https.protocols"); } }