Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(expected = org.neo4j.consistency.ConsistencyCheckTool.ToolFailureException.class) public void failOnNotCleanlyShutdownStoreWithLogsInCustomRelativeLocation() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void FailOnNotCleanlyShutdownStoreWithLogsInCustomRelativeLocation()
        {
            File   customConfigFile = _testDirectory.file("customConfig");
            Config customConfig     = Config.defaults(logical_logs_location, "otherLocation");

            CreateGraphDbAndKillIt(customConfig);
            MapUtil.store(customConfig.Raw, _fs.openAsOutputStream(customConfigFile, false));
            string[] args = new string[] { _testDirectory.databaseDir().Path, "-config", customConfigFile.Path };

            RunConsistencyCheckToolWith(_fs.get(), args);
        }