Search in sources :

Example 16 with TransportTestUtil

use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.

the class RequiredTransportEncryptionIT method setup.

@BeforeEach
public void setup(TestInfo testInfo) throws IOException {
    server.setConfigure(settings -> settings.put(BoltConnector.encryption_level, REQUIRED));
    server.init(testInfo);
    address = server.lookupDefaultConnector();
    util = new TransportTestUtil();
}
Also used : TransportTestUtil(org.neo4j.bolt.testing.TransportTestUtil) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

TransportTestUtil (org.neo4j.bolt.testing.TransportTestUtil)16 BeforeEach (org.junit.jupiter.api.BeforeEach)12 BeforeAll (org.junit.jupiter.api.BeforeAll)3 Neo4jPackV2 (org.neo4j.bolt.packstream.Neo4jPackV2)2 SocketConnection (org.neo4j.bolt.testing.client.SocketConnection)2 SelfSignedCertificateFactory (org.neo4j.test.ssl.SelfSignedCertificateFactory)2 Path (java.nio.file.Path)1 BouncyCastleProvider (org.bouncycastle.jce.provider.BouncyCastleProvider)1 SocketAddress (org.neo4j.configuration.helpers.SocketAddress)1