MCPcopy Create free account
hub / github.com/PCGen/pcgen / setUp

Method setUp

code/src/test/pcgen/inttest/PcgenFtlErrorTest.java:16–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14public class PcgenFtlErrorTest
15{
16 @BeforeEach
17 public void setUp()
18 {
19 GracefulExit.registerExitFunction((int status) -> {
20 assertEquals(1, status,
21 MessageFormat.format("The PCGen execution returned an unexpected status code: {0}.", status));
22 throw new IllegalStateException("The test execution is aborted intentionally.");
23 });
24 }
25
26 @AfterEach
27 public void tearDown()

Callers

nothing calls this directly

Calls 2

registerExitFunctionMethod · 0.95
formatMethod · 0.80

Tested by

no test coverage detected