//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldBeAbleToRecoverBrokenStore() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldBeAbleToRecoverBrokenStore() { using (FileSystemAbstraction fileSystemAbstraction = CreateAndCrashWithDefaultConfig()) { PageCache pageCache = _pageCacheRule.getPageCache(fileSystemAbstraction); RecoveryRequiredChecker recoverer = GetRecoveryCheckerWithDefaultConfig(fileSystemAbstraction, pageCache); assertThat(recoverer.IsRecoveryRequiredAt(_databaseLayout), @is(true)); (new TestGraphDatabaseFactory()).setFileSystem(fileSystemAbstraction).newImpermanentDatabase(_storeDir).shutdown(); assertThat(recoverer.IsRecoveryRequiredAt(_databaseLayout), @is(false)); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void recoverBrokenStoreWithConfig(org.neo4j.kernel.configuration.Config config) throws java.io.IOException private void RecoverBrokenStoreWithConfig(Config config) { using (FileSystemAbstraction fileSystemAbstraction = CreateSomeDataAndCrash(_storeDir, _fileSystem, config)) { PageCache pageCache = _pageCacheRule.getPageCache(fileSystemAbstraction); RecoveryRequiredChecker recoverer = GetRecoveryChecker(fileSystemAbstraction, pageCache, config); assertThat(recoverer.IsRecoveryRequiredAt(_databaseLayout), @is(true)); (new TestGraphDatabaseFactory()).setFileSystem(fileSystemAbstraction).newEmbeddedDatabaseBuilder(_storeDir).setConfig(config.Raw).newGraphDatabase().shutdown(); assertThat(recoverer.IsRecoveryRequiredAt(_databaseLayout), @is(false)); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldNotWantToRecoverIntactStore() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldNotWantToRecoverIntactStore() { PageCache pageCache = _pageCacheRule.getPageCache(_fileSystem); RecoveryRequiredChecker recoverer = GetRecoveryCheckerWithDefaultConfig(_fileSystem, pageCache); assertThat(recoverer.IsRecoveryRequiredAt(_databaseLayout), @is(false)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldWantToRecoverBrokenStore() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldWantToRecoverBrokenStore() { using (FileSystemAbstraction fileSystemAbstraction = CreateAndCrashWithDefaultConfig()) { PageCache pageCache = _pageCacheRule.getPageCache(fileSystemAbstraction); RecoveryRequiredChecker recoverer = GetRecoveryCheckerWithDefaultConfig(fileSystemAbstraction, pageCache); assertThat(recoverer.IsRecoveryRequiredAt(_databaseLayout), @is(true)); } }