public class TestEnvironment extends Object
| Modifier and Type | Field and Description |
|---|---|
TemporaryDirectoryAllocator |
temporaryDirectoryAllocator |
| Constructor and Description |
|---|
TestEnvironment(org.junit.runner.Description description) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runner.Description |
description()
Current test case being run (works for JUnit 3 or 4).
|
void |
dispose() |
static TestEnvironment |
get() |
void |
pin() |
String |
toString() |
public final TemporaryDirectoryAllocator temporaryDirectoryAllocator
public TestEnvironment(@Nonnull org.junit.runner.Description description)
@Nonnull public org.junit.runner.Description description()
Description.getTestClass() is currently broken in some environments (claimed fixed in JUnit 4.11). Use Description.getClassName() instead.public void pin()
public void dispose()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic static TestEnvironment get()
Copyright © 2004–2018. All rights reserved.