Ejemplo 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.kernel.impl.store.InvalidIdGeneratorException.class) public void failMigrationWhenNodeIdFileIsBroken() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void FailMigrationWhenNodeIdFileIsBroken()
        {
            PrepareEmpty23Database();
            File nodeIdFile = _databaseLayout.idNodeStore();

            WriteFile(nodeIdFile, new sbyte[] { 1, 2, 3 });

            _indexMigrator.migrate(_databaseLayout, _migrationLayout, _progressReporter, StandardV3_2.STORE_VERSION, StandardV3_2.STORE_VERSION);
        }