Skip to content

Commit a6a27d7

Browse files
Copilotchrjohn
andauthored
Log current SocksProxyTest case name
Agent-Logs-Url: https://github.com/quickfix-j/quickfixj/sessions/a0c02358-15f1-4e45-aa85-eef2df0d3d7b Co-authored-by: chrjohn <6644028+chrjohn@users.noreply.github.com>
1 parent 35c494e commit a6a27d7

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

quickfixj-core/src/test/java/quickfix/mina/SocksProxyTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import org.apache.mina.util.AvailablePortFinder;
44
import org.junit.After;
55
import org.junit.Before;
6+
import org.junit.Rule;
67
import org.junit.Test;
8+
import org.junit.rules.TestName;
9+
import org.slf4j.Logger;
10+
import org.slf4j.LoggerFactory;
711
import quickfix.Acceptor;
812
import quickfix.ApplicationAdapter;
913
import quickfix.ConfigError;
@@ -28,13 +32,19 @@
2832
*/
2933
public class SocksProxyTest {
3034

35+
private static final Logger LOGGER = LoggerFactory.getLogger(SocksProxyTest.class);
36+
3137
// maximum time to wait for session logon
3238
private static final long TIMEOUT_SECONDS = 5;
3339

40+
@Rule
41+
public TestName testName = new TestName();
42+
3443
private SocksProxyServer proxyServer;
3544

3645
@Before
3746
public void setUp() {
47+
LOGGER.info("Starting test {}.{}", getClass().getSimpleName(), testName.getMethodName());
3848
int proxyPort = AvailablePortFinder.getNextAvailable();
3949

4050
proxyServer = new SocksProxyServer(proxyPort);
@@ -46,6 +56,8 @@ public void tearDown() {
4656
if (proxyServer != null) {
4757
proxyServer.stop();
4858
}
59+
60+
LOGGER.info("Finished test {}.{}", getClass().getSimpleName(), testName.getMethodName());
4961
}
5062

5163
@Test

0 commit comments

Comments
 (0)