26
26
import javax .net .ssl .SSLHandshakeException ;
27
27
import javax .net .ssl .SSLSession ;
28
28
29
- import org .neo4j .driver .internal .logging .DevNullLogger ;
30
29
import org .neo4j .driver .v1 .exceptions .ClientException ;
31
30
import org .neo4j .driver .v1 .exceptions .ServiceUnavailableException ;
32
31
40
39
import static org .mockito .Mockito .times ;
41
40
import static org .mockito .Mockito .verify ;
42
41
import static org .mockito .Mockito .when ;
42
+ import static org .neo4j .driver .internal .logging .DevNullLogger .DEV_NULL_LOGGER ;
43
43
import static org .neo4j .driver .internal .security .TLSSocketChannel .create ;
44
44
45
45
public class TLSSocketChannelTest
@@ -59,7 +59,7 @@ public void shouldCloseConnectionIfFailedToRead() throws Throwable
59
59
when ( mockedSslSession .getPacketBufferSize () ).thenReturn ( 10 );
60
60
61
61
// When
62
- TLSSocketChannel channel = new TLSSocketChannel ( mockedChannel , new DevNullLogger () , mockedSslEngine );
62
+ TLSSocketChannel channel = new TLSSocketChannel ( mockedChannel , DEV_NULL_LOGGER , mockedSslEngine );
63
63
64
64
try
65
65
{
@@ -89,7 +89,7 @@ public void shouldCloseConnectionIfFailedToWrite() throws Throwable
89
89
when ( mockedSslSession .getPacketBufferSize () ).thenReturn ( 10 );
90
90
91
91
// When
92
- TLSSocketChannel channel = new TLSSocketChannel ( mockedChannel , new DevNullLogger () , mockedSslEngine );
92
+ TLSSocketChannel channel = new TLSSocketChannel ( mockedChannel , DEV_NULL_LOGGER , mockedSslEngine );
93
93
94
94
try
95
95
{
@@ -123,7 +123,7 @@ public void shouldThrowClientErrorIfFailedToHandshake() throws Throwable
123
123
// When & Then
124
124
try
125
125
{
126
- create ( mockedChannel , new DevNullLogger () , mockedSslEngine );
126
+ create ( mockedChannel , DEV_NULL_LOGGER , mockedSslEngine );
127
127
fail ( "Should fail to run handshake" );
128
128
}
129
129
catch ( Exception e )
0 commit comments