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

Method setUp

src/test/java/gate/corpora/TestDocument.java:43–62  ·  view source on GitHub ↗

Fixture set up

()

Source from the content-addressed store, hash-verified

41
42 /** Fixture set up */
43 @Override
44 public void setUp() throws Exception {
45
46
47 if (!Gate.isInitialised()) {
48 Gate.runInSandbox(true);
49 Gate.init();
50 }
51
52
53 //try{
54// Gate.init();
55 //testServer = Gate.getUrl().toExternalForm();
56 testServer = getTestServerName();
57 //} catch (GateException e){
58 // e.printStackTrace(Err.getPrintWriter());
59 //}
60
61 testDocument1 = "tests/html/test2.htm";
62 } // setUp
63
64 /** Get the name of the test server */
65 public static String getTestServerName() {

Callers

nothing calls this directly

Calls 4

isInitialisedMethod · 0.95
runInSandboxMethod · 0.95
initMethod · 0.95
getTestServerNameMethod · 0.95

Tested by

no test coverage detected