List of usage examples for java.lang System clearProperty
public static String clearProperty(String key)
From source file:org.constretto.spring.assembly.AssemblyWithAspectsTest.java
@Before public void removeAssemblyKey() { System.clearProperty(ASSEMBLY_KEY); }
From source file:org.apache.jackrabbit.core.id.NodeIdFactoryTest.java
public void setUp() throws IOException { System.clearProperty(NodeIdFactory.SEQUENTIAL_NODE_ID); FileUtils.deleteDirectory(new File(factoryDir)); }
From source file:org.cloudfoundry.identity.batch.BootstrapTests.java
@Before public void setup() throws Exception { System.clearProperty("spring.profiles.active"); }
From source file:com.agilegroups.aws.AmazonEC2ApplicationTests.java
@After public void after() { if (this.profiles != null) { System.setProperty("spring.profiles.active", this.profiles); } else {/*from www.j a v a2 s . c om*/ System.clearProperty("spring.profiles.active"); } }
From source file:org.greencheek.utils.environment.propertyplaceholder.spring.TestEnvironmentalPropertySourcesPlaceholderConfigurerWithSpringValueResolution.java
@Test public void testPropertyResolved() { System.setProperty("ENVIRONMENT", "dev"); System.clearProperty("ENV"); ctx = new ClassPathXmlApplicationContext(new String[] { "classpath:SpringValueResolution-config.xml" }); String value = (String) ctx.getBean("string"); assertEquals("defaultproperties", value); ctx.close();/*ww w. j ava2s.com*/ }
From source file:de.hypoport.ep2.support.configuration.properties.PropertiesLoaderTest.java
@BeforeMethod(alwaysRun = true) public void cleanupSystemProperties() { PropertiesLoader.initialized = false; System.clearProperty(PROPERTY_LOCATIONS); System.clearProperty("a"); System.clearProperty("b"); System.clearProperty("f"); System.clearProperty("bleibt"); }
From source file:com.partnet.TestHtmlView.java
@After public void teardown() { System.clearProperty(WAIT_FOR_PAGE_PROP); }
From source file:org.cloudfoundry.identity.batch.BootstrapTests.java
@After public void cleanup() throws Exception { System.clearProperty("spring.profiles.active"); if (context != null) { context.close();//from www. ja v a 2 s . c o m } }
From source file:org.apache.kylin.source.hive.HiveCmdBuilderTest.java
@After public void after() throws Exception { System.clearProperty("kylin.hive.client"); System.clearProperty("kylin.hive.beeline.params"); }
From source file:org.jboss.shrinkwrap.resolver.impl.maven.integration.RepositoryAuthTestCase.java
@BeforeClass public static void initialize() { System.clearProperty("maven.repo.local"); // May conflict with release settings }