Skip to content

Commit

Permalink
log start/stop
Browse files Browse the repository at this point in the history
  • Loading branch information
nhenneaux committed Jan 9, 2024
1 parent c1821a2 commit 2578663
Showing 1 changed file with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
import jakarta.ws.rs.core.Response;
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;
import org.junit.jupiter.api.*;

import java.io.IOException;
import java.io.InputStream;
Expand All @@ -35,6 +34,20 @@ class JettyServerTest {
static final int PORT = 2223;
private static final String PING = "/ping";

@BeforeEach
void setUp(TestInfo testInfo) {
var testClass = testInfo.getTestClass().orElseThrow();
var testMethod = testInfo.getTestMethod().orElseThrow();
System.out.println(testClass.getSimpleName() + "::" + testMethod.getName() + " test has started.");
}

@AfterEach
void tearDown(TestInfo testInfo) {
var testClass = testInfo.getTestClass().orElseThrow();
var testMethod = testInfo.getTestMethod().orElseThrow();
System.out.println(testClass.getSimpleName() + "::" + testMethod.getName() + " test has finished.");
}

private static WebTarget getClient(int port, KeyStore trustStore, ClientConfig clientConfig) {
return ClientBuilder.newBuilder()
.trustStore(trustStore)
Expand Down

0 comments on commit 2578663

Please sign in to comment.