Class RestoreThreadContextClassloader
- java.lang.Object
-
- org.junit.rules.ExternalResource
-
- com.atlassian.confluence.test.util.RestoreThreadContextClassloader
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public final class RestoreThreadContextClassloader extends org.junit.rules.ExternalResource
A JUnit Rule which makes sure that the Thread context Classloader is the same after the test completes as was present before it started.- Since:
- 7.20
-
-
Constructor Summary
Constructors Constructor Description RestoreThreadContextClassloader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
after()
protected void
before()
-