3737import org .neo4j .driver .internal .logging .DevNullLogging ;
3838import org .neo4j .driver .internal .logging .JULogging ;
3939import org .neo4j .driver .internal .logging .Slf4jLogging ;
40- import org .neo4j .driver .internal .metrics .MetricsProvider ;
4140import org .neo4j .driver .net .ServerAddressResolver ;
4241import org .neo4j .driver .util .TestUtil ;
4342
@@ -395,31 +394,29 @@ void shouldSetMetricsAdapter()
395394 @ Nested
396395 class SerializationTest
397396 {
398-
399397 @ Test
400398 void shouldSerialize () throws Exception
401399 {
402400 Config config = Config .builder ()
403401 .withMaxConnectionPoolSize ( 123 )
404- .withConnectionTimeout ( 6543L , TimeUnit .MILLISECONDS )
405- .withConnectionAcquisitionTimeout ( 5432L , TimeUnit .MILLISECONDS )
406- .withConnectionLivenessCheckTimeout ( 4321L , TimeUnit .MILLISECONDS )
407- .withMaxConnectionLifetime ( 4711 , TimeUnit .MILLISECONDS )
408- .withMaxTransactionRetryTime ( 3210L , TimeUnit .MILLISECONDS )
409- .withFetchSize ( 9876L )
410- .withEventLoopThreads ( 4 )
411- .withoutEncryption ()
412- .withTrustStrategy ( Config .TrustStrategy .trustCustomCertificateSignedBy ( new File ( "doesntMatter" )) )
413- .withUserAgent ( "user-agent" )
414- .withDriverMetrics ()
415- .withRoutingTablePurgeDelay ( 50000 , TimeUnit .MILLISECONDS )
416- .withLeakedSessionsLogging ()
417- .withMetricsAdapter ( MetricsAdapter .MICROMETER )
418- .build ();
402+ .withConnectionTimeout ( 6543L , TimeUnit .MILLISECONDS )
403+ .withConnectionAcquisitionTimeout ( 5432L , TimeUnit .MILLISECONDS )
404+ .withConnectionLivenessCheckTimeout ( 4321L , TimeUnit .MILLISECONDS )
405+ .withMaxConnectionLifetime ( 4711 , TimeUnit .MILLISECONDS )
406+ .withMaxTransactionRetryTime ( 3210L , TimeUnit .MILLISECONDS )
407+ .withFetchSize ( 9876L )
408+ .withEventLoopThreads ( 4 )
409+ .withoutEncryption ()
410+ .withTrustStrategy ( Config .TrustStrategy .trustCustomCertificateSignedBy ( new File ( "doesntMatter" ) ) )
411+ .withUserAgent ( "user-agent" )
412+ .withDriverMetrics ()
413+ .withRoutingTablePurgeDelay ( 50000 , TimeUnit .MILLISECONDS )
414+ .withLeakedSessionsLogging ()
415+ .withMetricsAdapter ( MetricsAdapter .MICROMETER )
416+ .build ();
419417
420418 Config verify = TestUtil .serializeAndReadBack ( config , Config .class );
421419
422-
423420 assertEquals ( config .maxConnectionPoolSize (), verify .maxConnectionPoolSize () );
424421 assertEquals ( config .connectionTimeoutMillis (), verify .connectionTimeoutMillis () );
425422 assertEquals ( config .connectionAcquisitionTimeoutMillis (), verify .connectionAcquisitionTimeoutMillis () );
@@ -445,7 +442,6 @@ void shouldSerialize() throws Exception
445442 @ Test
446443 void shouldSerializeSerializableLogging () throws IOException , ClassNotFoundException
447444 {
448-
449445 Config config = Config .builder ().withLogging ( Logging .javaUtilLogging ( Level .ALL ) ).build ();
450446
451447 Config verify = TestUtil .serializeAndReadBack ( config , Config .class );
0 commit comments