use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class RoutingConnectorCertificatesIT method setUp.
@BeforeAll
public static void setUp() throws IOException, GeneralSecurityException, OperatorCreationException {
certFactory = new SelfSignedCertificateFactory();
externalKeyFile = Files.createTempFile("key", "pem");
externalCertFile = Files.createTempFile("key", "pem");
// make sure files are not there
Files.delete(externalKeyFile);
Files.delete(externalCertFile);
certFactory.createSelfSignedCertificate(externalCertFile, externalKeyFile, "my.domain");
internalKeyFile = Files.createTempFile("key", "pem");
internalCertFile = Files.createTempFile("key", "pem");
// make sure files are not there
Files.delete(internalKeyFile);
Files.delete(internalCertFile);
certFactory.createSelfSignedCertificate(internalCertFile, internalKeyFile, "my.domain");
util = new TransportTestUtil();
}
use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class AbstractBoltTransportsTest method initParameters.
protected void initParameters(Class<? extends TransportConnection> connectionClass, Neo4jPack neo4jPack, String name) throws Exception {
this.connectionClass = connectionClass;
this.neo4jPack = neo4jPack;
this.name = name;
connection = newConnection();
util = new TransportTestUtil(neo4jPack);
}
use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class BoltV4TransportIT method setUp.
@BeforeEach
public void setUp(TestInfo testInfo) throws IOException {
server.setConfigure(settings -> {
withOptionalBoltEncryption().accept(settings);
settings.put(FabricSettings.enabled_by_default, false);
});
server.init(testInfo);
address = server.lookupDefaultConnector();
util = new TransportTestUtil(newMessageEncoder());
}
use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class BoltThrottleMaxDurationIT method setup.
@BeforeEach
public void setup(TestInfo testInfo) throws IOException {
server.setGraphDatabaseFactory(getTestGraphDatabaseFactory());
server.setConfigure(getSettingsFunction());
server.init(testInfo);
otherThread.set(5, TimeUnit.MINUTES);
address = server.lookupDefaultConnector();
util = new TransportTestUtil();
}
use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class UnsupportedStructTypesV2IT method setup.
@BeforeEach
public void setup(TestInfo testInfo) throws IOException {
server.setConfigure(withOptionalBoltEncryption());
server.init(testInfo);
address = server.lookupDefaultConnector();
util = new TransportTestUtil(new Neo4jPackV2());
}
Aggregations