MCPcopy Create free account
hub / github.com/QuiltMC/chasm / setUp

Method setUp

chasm/src/test/java/org/quiltmc/chasm/TestsBase.java:55–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 @BeforeEach
56 public void setUp() {
57 // Instantiate the processor
58 processor = new ChasmProcessor(new Context() {
59 @Override
60 public @Nullable ClassInfo getClassInfo(String className) {
61 try {
62 return ClassInfo.fromClass(Class.forName(className, false, getClass().getClassLoader()));
63 } catch (ClassNotFoundException e) {
64 return null;
65 }
66 }
67
68 @Override
69 public byte @Nullable [] readFile(String path) {
70 return null;
71 }
72 });
73 }
74
75 @AfterEach
76 public void tearDown() {

Callers 1

testRegisteredMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected