44
44
45
45
import static org .hamcrest .Matchers .instanceOf ;
46
46
import static org .junit .Assert .assertArrayEquals ;
47
- import static org .junit .Assert .assertNotNull ;
48
47
import static org .junit .Assert .assertThat ;
49
48
import static org .junit .Assert .fail ;
50
49
import static org .mockito .Mockito .doThrow ;
@@ -114,7 +113,7 @@ public void usesStandardSessionFactoryWhenNothingConfigured()
114
113
Config config = Config .defaultConfig ();
115
114
SessionFactoryCapturingDriverFactory factory = new SessionFactoryCapturingDriverFactory ();
116
115
117
- assertNotNull ( createDriver ( factory , config ) );
116
+ createDriver ( factory , config );
118
117
119
118
SessionFactory capturedFactory = factory .capturedSessionFactory ;
120
119
assertThat ( capturedFactory .newInstance ( READ , null ), instanceOf ( NetworkSession .class ) );
@@ -126,7 +125,7 @@ public void usesLeakLoggingSessionFactoryWhenConfigured()
126
125
Config config = Config .build ().withLeakedSessionsLogging ().toConfig ();
127
126
SessionFactoryCapturingDriverFactory factory = new SessionFactoryCapturingDriverFactory ();
128
127
129
- assertNotNull ( createDriver ( factory , config ) );
128
+ createDriver ( factory , config );
130
129
131
130
SessionFactory capturedFactory = factory .capturedSessionFactory ;
132
131
assertThat ( capturedFactory .newInstance ( READ , null ), instanceOf ( LeakLoggingNetworkSession .class ) );
0 commit comments