Beispiel #1
0
  /** Setups client's config and starts WireMock. */
  @Before
  public void setUpServer() throws IOException, TmcCoreException {
    tmcCli = new TmcCli(false);
    tmcCli.setServer(SERVER_ADDRESS);
    tmcCli.startServer();
    testClient = new TestClient(new ConfigHandler().readPort());

    new ConfigHandler().writeLastUpdate(new Date());

    startWireMock();
  }
Beispiel #2
0
 /** Shuts down the server and WireMock after scenario. */
 @After
 public void closeServer() throws IOException {
   tmcCli.stopServer();
   wireMockServer.stop();
   new File(new ConfigHandler().getConfigFilePath()).delete();
 }