Ensure @BeforeEach and @AfterEach are public methods (not protected)
This commit is contained in:
parent
f15e4a152f
commit
fc37681cbb
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue