public class SystemExitRule extends Object implements org.junit.rules.TestRule
| Modifier and Type | Class and Description |
|---|---|
static class |
SystemExitRule.SystemExitInTestException |
| Modifier and Type | Field and Description |
|---|---|
(package private) static SecurityManager |
securityManager |
| Constructor and Description |
|---|
SystemExitRule() |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement s,
org.junit.runner.Description d) |
private static void |
forbidSystemExitCall() |
static final SecurityManager securityManager
public SystemExitRule()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement s, org.junit.runner.Description d)
apply in interface org.junit.rules.TestRuleprivate static void forbidSystemExitCall()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.