org.mule.tck.junit4.rule
Class SystemProperty
java.lang.Object
org.junit.rules.ExternalResource
org.mule.tck.junit4.rule.SystemProperty
- All Implemented Interfaces:
- org.junit.rules.TestRule
- Direct Known Subclasses:
- DynamicPort
public class SystemProperty
- extends org.junit.rules.ExternalResource
Sets up a system property before a test and guaranties to tear it down
afterward.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemProperty
public SystemProperty(String name)
SystemProperty
public SystemProperty(String name,
String value)
before
protected void before()
throws Throwable
- Overrides:
before
in class org.junit.rules.ExternalResource
- Throws:
Throwable
after
protected void after()
- Overrides:
after
in class org.junit.rules.ExternalResource
restoreOldValue
protected void restoreOldValue()
getName
public String getName()
doCleanUp
protected void doCleanUp()
getValue
public String getValue()
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.