List of usage examples for java.lang System clearProperty
public static String clearProperty(String key)
From source file:io.gravitee.gateway.env.GatewayConfigurationTest.java
@Before public void setUp() { MockitoAnnotations.initMocks(this); System.clearProperty(GatewayConfiguration.SHARDING_TAGS_SYSTEM_PROPERTY); System.clearProperty(GatewayConfiguration.MULTI_TENANT_SYSTEM_PROPERTY); }
From source file:org.apache.hadoop.hive.ql.log.TestSlidingFilenameRolloverStrategy.java
@AfterClass public static void tearDown() { System.clearProperty("log4j.configurationFile"); LogManager.shutdown(); }
From source file:org.apache.solr.util.TestSystemIdResolver.java
public void tearDown() throws Exception { System.clearProperty("solr.allow.unsafe.resourceloading"); super.tearDown(); }
From source file:org.cloudfoundry.identity.uaa.scim.job.AbstractJobIntegrationTests.java
@AfterClass public static void cleanUpDatabaseUrl() { System.clearProperty("batch.jdbc.url"); }
From source file:org.mule.MuleSessionHandlerTestCase.java
@AfterClass public static void restoreEncoding() { if (originalEncoding == null) { System.clearProperty(MuleProperties.MULE_ENCODING_SYSTEM_PROPERTY); } else {/* w w w . ja va 2 s . c o m*/ System.setProperty(MuleProperties.MULE_ENCODING_SYSTEM_PROPERTY, originalEncoding); } }
From source file:com.evolveum.midpoint.init.TestConfigurationLoad.java
@Test public void test010SimpleConfigTest() { LOGGER.info("---------------- test010SimpleConfigTest -----------------"); System.clearProperty("midpoint.home"); LOGGER.info("midpoint.home => " + System.getProperty("midpoint.home")); assertNull(System.getProperty("midpoint.home"), "midpoint.home"); StartupConfiguration sc = new StartupConfiguration(); assertNotNull(sc);/* w ww. j a v a 2 s . c o m*/ sc.init(); Configuration c = sc.getConfiguration("midpoint.repository"); assertEquals(c.getString("repositoryServiceFactoryClass"), "com.evolveum.midpoint.repo.sql.SqlRepositoryFactory"); LOGGER.info(sc.toString()); @SuppressWarnings("unchecked") Iterator<String> i = c.getKeys(); while (i.hasNext()) { String key = i.next(); LOGGER.info(" " + key + " = " + c.getString(key)); } assertEquals(c.getBoolean("asServer"), true); assertEquals(c.getString("baseDir"), System.getProperty("midpoint.home")); }
From source file:org.apache.jackrabbit.core.id.NodeIdFactoryTest.java
public void tearDown() throws IOException { setUp(); System.clearProperty(NodeIdFactory.SEQUENTIAL_NODE_ID); }
From source file:com.autonomy.aci.client.services.impl.AbstractStAXProcessorTest.java
@After public void tearDown() { System.clearProperty(XMLInputFactory.IS_NAMESPACE_AWARE); System.clearProperty(XMLInputFactory.IS_VALIDATING); System.clearProperty(XMLInputFactory.IS_COALESCING); System.clearProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES); System.clearProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES); System.clearProperty(XMLInputFactory.SUPPORT_DTD); }
From source file:com.evolveum.midpoint.init.ConfigurationLoadTest.java
@Test(enabled = false) public void t01simpleConfigTest() { LOGGER.info("---------------- simpleConfigTest -----------------"); System.clearProperty("midpoint.home"); LOGGER.info("midpoint.home => " + System.getProperty("midpoint.home")); assertNull(System.getProperty("midpoint.home"), "midpoint.home"); StartupConfiguration sc = new StartupConfiguration(); assertNotNull(sc);//from w w w.j a v a2 s .c om sc.init(); Configuration c = sc.getConfiguration("midpoint.repository"); assertEquals(c.getString("repositoryServiceFactoryClass"), "com.evolveum.midpoint.repo.xml.XmlRepositoryServiceFactory"); LOGGER.info(sc.toString()); @SuppressWarnings("unchecked") Iterator<String> i = c.getKeys(); while (i.hasNext()) { String key = i.next(); LOGGER.info(" " + key + " = " + c.getString(key)); } assertEquals(c.getInt("port"), 1984); assertEquals(c.getString("serverPath"), ""); }
From source file:org.apache.solr.security.hadoop.TestSolrCloudWithHadoopAuthPlugin.java
@AfterClass public static void tearDownClass() throws Exception { System.clearProperty("java.security.auth.login.config"); System.clearProperty("solr.kerberos.principal"); System.clearProperty("solr.kerberos.keytab"); System.clearProperty("solr.kerberos.name.rules"); System.clearProperty("solr.jaas.debug"); if (kerberosTestServices != null) { kerberosTestServices.stop();//from w w w . j a va2 s .co m } kerberosTestServices = null; }