Ensure @BeforeEach and @AfterEach are public methods (not protected)

This commit is contained in:
Joakim Erdfelt 2023-07-31 16:40:21 -05:00
parent f15e4a152f
commit fc37681cbb
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
5 changed files with 10 additions and 10 deletions

View File

@ -62,7 +62,7 @@ public class LowLevelQuicheClientCertTest
private Certificate[] serverCertificateChain;
@BeforeEach
protected void setUp() throws Exception
public void setUp() throws Exception
{
clientSocketAddress = new InetSocketAddress("localhost", 9999);
serverSocketAddress = new InetSocketAddress("localhost", 8888);
@ -113,7 +113,7 @@ public class LowLevelQuicheClientCertTest
}
@AfterEach
protected void tearDown()
public void tearDown()
{
connectionsToDisposeOf.forEach(ForeignIncubatorQuicheConnection::dispose);
connectionsToDisposeOf.clear();

View File

@ -64,7 +64,7 @@ public class LowLevelQuicheTest
private Certificate[] serverCertificateChain;
@BeforeEach
protected void setUp() throws Exception
public void setUp() throws Exception
{
clientSocketAddress = new InetSocketAddress("localhost", 9999);
serverSocketAddress = new InetSocketAddress("localhost", 8888);
@ -111,7 +111,7 @@ public class LowLevelQuicheTest
}
@AfterEach
protected void tearDown()
public void tearDown()
{
connectionsToDisposeOf.forEach(ForeignIncubatorQuicheConnection::dispose);
connectionsToDisposeOf.clear();

View File

@ -61,7 +61,7 @@ public class LowLevelQuicheClientCertTest
private Certificate[] serverCertificateChain;
@BeforeEach
protected void setUp() throws Exception
public void setUp() throws Exception
{
clientSocketAddress = new InetSocketAddress("localhost", 9999);
serverSocketAddress = new InetSocketAddress("localhost", 8888);
@ -112,7 +112,7 @@ public class LowLevelQuicheClientCertTest
}
@AfterEach
protected void tearDown()
public void tearDown()
{
connectionsToDisposeOf.forEach(JnaQuicheConnection::dispose);
connectionsToDisposeOf.clear();

View File

@ -59,7 +59,7 @@ public class LowLevelQuicheTest
private Certificate[] serverCertificateChain;
@BeforeEach
protected void setUp() throws Exception
public void setUp() throws Exception
{
clientSocketAddress = new InetSocketAddress("localhost", 9999);
serverSocketAddress = new InetSocketAddress("localhost", 8888);
@ -106,7 +106,7 @@ public class LowLevelQuicheTest
}
@AfterEach
protected void tearDown()
public void tearDown()
{
connectionsToDisposeOf.forEach(JnaQuicheConnection::dispose);
connectionsToDisposeOf.clear();

View File

@ -34,7 +34,7 @@ public class WebAppDefaultServletCacheTest
private Path resourcePath;
@BeforeEach
protected void setUp() throws Exception
public void setUp() throws Exception
{
server = new Server();
connector = new LocalConnector(server);
@ -48,7 +48,7 @@ public class WebAppDefaultServletCacheTest
}
@AfterEach
protected void tearDown() throws Exception
public void tearDown() throws Exception
{
server.stop();
}