Index
All Classes and Interfaces|All Packages|Serialized Form
A
- afterEach(ExtensionContext) - Method in class com.ginsberg.junit.exit.SystemExitExtension
- afterTest() - Method in class com.ginsberg.junit.exit.agent.AgentSystemExitHandlerStrategy
- afterTest() - Method in interface com.ginsberg.junit.exit.ExitPreventerStrategy
- agentInit() - Static method in class com.ginsberg.junit.exit.agent.AgentSystemExitHandlerStrategy
- AgentSystemExitHandlerStrategy - Class in com.ginsberg.junit.exit.agent
- AgentSystemExitHandlerStrategy() - Constructor for class com.ginsberg.junit.exit.agent.AgentSystemExitHandlerStrategy
- assertThatCallsSystemExit(Runnable) - Static method in class com.ginsberg.junit.exit.assertions.SystemExitAssertion
- assertThatDoesNotCallSystemExit(Runnable) - Static method in class com.ginsberg.junit.exit.assertions.SystemExitAssertion
B
- beforeEach(ExtensionContext) - Method in class com.ginsberg.junit.exit.SystemExitExtension
- beforeTest() - Method in class com.ginsberg.junit.exit.agent.AgentSystemExitHandlerStrategy
- beforeTest() - Method in interface com.ginsberg.junit.exit.ExitPreventerStrategy
C
- com.ginsberg.junit.exit - package com.ginsberg.junit.exit
- com.ginsberg.junit.exit.agent - package com.ginsberg.junit.exit.agent
- com.ginsberg.junit.exit.assertions - package com.ginsberg.junit.exit.assertions
D
- DoNotRewriteExitCalls - Annotation Interface in com.ginsberg.junit.exit.agent
E
- ExitPreventerStrategy - Interface in com.ginsberg.junit.exit
- ExpectSystemExit - Annotation Interface in com.ginsberg.junit.exit
-
This is a marker annotation that indicates the given test method or class is expected to call System.exit()
- ExpectSystemExitWithStatus - Annotation Interface in com.ginsberg.junit.exit
-
This is a marker annotation that indicates the given test method or class is expected to call System.exit() with a specific code
F
- FailOnSystemExit - Annotation Interface in com.ginsberg.junit.exit
-
This is a marker annotation that indicates the given test method or class is not expected to call System.exit().
- firstExitStatusCode() - Method in class com.ginsberg.junit.exit.agent.AgentSystemExitHandlerStrategy
- firstExitStatusCode() - Method in interface com.ginsberg.junit.exit.ExitPreventerStrategy
G
- getStatusCode() - Method in exception com.ginsberg.junit.exit.SystemExitPreventedException
H
- handleExit(int) - Static method in class com.ginsberg.junit.exit.agent.AgentSystemExitHandlerStrategy
- handleTestExecutionException(ExtensionContext, Throwable) - Method in class com.ginsberg.junit.exit.SystemExitExtension
-
This is here so we can catch exceptions thrown by the `ExitPreventerStrategy` and prevent them from stopping the annotated test.
I
- isLoadedFromAgent() - Static method in class com.ginsberg.junit.exit.agent.AgentSystemExitHandlerStrategy
J
P
- premain(String, Instrumentation) - Static method in class com.ginsberg.junit.exit.agent.Junit5SystemExitAgent
R
- resetBetweenTests() - Method in class com.ginsberg.junit.exit.agent.AgentSystemExitHandlerStrategy
- resetBetweenTests() - Method in interface com.ginsberg.junit.exit.ExitPreventerStrategy
S
- SystemExitAssertion - Class in com.ginsberg.junit.exit.assertions
- SystemExitAssertion(SystemExitPreventedException) - Constructor for class com.ginsberg.junit.exit.assertions.SystemExitAssertion
- SystemExitExtension - Class in com.ginsberg.junit.exit
-
Entry point for JUnit tests.
- SystemExitExtension() - Constructor for class com.ginsberg.junit.exit.SystemExitExtension
- SystemExitPreventedException - Exception in com.ginsberg.junit.exit
-
A marker exception so we know that a
System.exit()call was intercepted and prevented. - SystemExitPreventedException(int) - Constructor for exception com.ginsberg.junit.exit.SystemExitPreventedException
V
- value() - Element in annotation interface com.ginsberg.junit.exit.ExpectSystemExitWithStatus
W
- withExitCode(int) - Method in class com.ginsberg.junit.exit.assertions.SystemExitAssertion
- withExitCodeInRange(int, int) - Method in class com.ginsberg.junit.exit.assertions.SystemExitAssertion
All Classes and Interfaces|All Packages|Serialized Form