Search in sources :

Example 21 with BoltConnector

use of org.neo4j.kernel.configuration.BoltConnector in project neo4j by neo4j.

the class ConfigLoaderTest method loadOfflineConfigAddDisabledBoltConnector.

@Test
public void loadOfflineConfigAddDisabledBoltConnector() throws IOException {
    // given
    Optional<File> configFile = ConfigFileBuilder.builder(folder.getRoot()).build();
    // when
    Config testConf = ConfigLoader.loadConfigWithConnectorsDisabled(Optional.of(folder.getRoot()), configFile);
    // then
    assertNotNull(testConf);
    assertEquals(false, testConf.get(new BoltConnector().enabled));
}
Also used : BoltConnector(org.neo4j.kernel.configuration.BoltConnector) Config(org.neo4j.kernel.configuration.Config) File(java.io.File) Test(org.junit.Test)

Aggregations

BoltConnector (org.neo4j.kernel.configuration.BoltConnector)21 Test (org.junit.Test)15 Config (org.neo4j.kernel.configuration.Config)14 ListenSocketAddress (org.neo4j.helpers.ListenSocketAddress)6 HashMap (java.util.HashMap)5 AdvertisedSocketAddress (org.neo4j.helpers.AdvertisedSocketAddress)4 File (java.io.File)3 Matchers.anyString (org.mockito.Matchers.anyString)3 MemberId (org.neo4j.causalclustering.identity.MemberId)3 MemberImpl (com.hazelcast.client.impl.MemberImpl)2 Member (com.hazelcast.core.Member)2 Address (com.hazelcast.nio.Address)2 ArrayList (java.util.ArrayList)2 HashSet (java.util.HashSet)2 HttpConnector (org.neo4j.kernel.configuration.HttpConnector)2 Matchers.containsString (org.hamcrest.Matchers.containsString)1 SocketConnection (org.neo4j.bolt.v1.transport.socket.client.SocketConnection)1 CoreTopologyService (org.neo4j.causalclustering.discovery.CoreTopologyService)1 HazelcastDiscoveryServiceFactory (org.neo4j.causalclustering.discovery.HazelcastDiscoveryServiceFactory)1 HostnamePort (org.neo4j.helpers.HostnamePort)1