MCPcopy Create free account
hub / github.com/GateNLP/gate-core / setUp

Method setUp

src/test/java/gate/config/TestConfig.java:47–55  ·  view source on GitHub ↗

Fixture set up

()

Source from the content-addressed store, hash-verified

45
46 /** Fixture set up */
47 @Override
48 public void setUp() throws Exception {
49 if (!Gate.isInitialised()) {
50 Gate.runInSandbox(true);
51 Gate.init();
52 }
53 CreoleRegister register = Gate.getCreoleRegister();
54 register.registerPlugin(new Plugin.Directory(new URL(TestDocument.getTestServerName()+"tests")));
55 } // setUp
56
57 /** Put things back as they should be after running tests
58 * (reinitialise the CREOLE register).

Callers

nothing calls this directly

Calls 6

isInitialisedMethod · 0.95
runInSandboxMethod · 0.95
initMethod · 0.95
getCreoleRegisterMethod · 0.95
registerPluginMethod · 0.95
getTestServerNameMethod · 0.95

Tested by

no test coverage detected