Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void checkExpectedDatabaseDirectory()
        internal virtual void CheckExpectedDatabaseDirectory()
        {
            Config config = Config.builder().withServerDefaults().withSetting(mode, Mode.SINGLE.name()).withSetting(GraphDatabaseSettings.neo4j_home, _testDirectory.storeDir().AbsolutePath).withSetting((new BoltConnector("bolt")).listen_address.name(), "localhost:0").withSetting((new BoltConnector("http")).listen_address.name(), "localhost:0").withSetting((new BoltConnector("https")).listen_address.name(), "localhost:0").build();
            GraphDatabaseDependencies dependencies = GraphDatabaseDependencies.newDependencies().userLogProvider(NullLogProvider.Instance);
            OpenEnterpriseNeoServer   server       = new OpenEnterpriseNeoServer(config, dependencies);

            server.Start();
            try
            {
                Path expectedPath         = Paths.get(_testDirectory.storeDir().Path, "data", "databases", "graph.db");
                GraphDatabaseFacade graph = server.Database.Graph;
                assertEquals(expectedPath, graph.DatabaseLayout().databaseDirectory().toPath());
            }
            finally
            {
                server.Stop();
            }
        }
Пример #2
0
 public ServerThreadViewAnonymousInnerClass(OpenEnterpriseNeoServer outerInstance, ThreadPool threadPool)
 {
     this.outerInstance = outerInstance;
     this._threadPool   = threadPool;
 }
Пример #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void before() throws java.io.IOException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void Before()
        {
            _server = createNonPersistentServer(Target.directory());
        }