//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void doNotTryToCommitWritersOnForceInReadOnlyMode() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void DoNotTryToCommitWritersOnForceInReadOnlyMode() { IndexIdentifier indexIdentifier = Identifier("foo"); PrepareIndexesByIdentifiers(indexIdentifier); StopDataSource(); Config readOnlyConfig = Config.defaults(readOnlyConfig()); LuceneDataSource readOnlyDataSource = _life.add(GetLuceneDataSource(readOnlyConfig)); assertNotNull(readOnlyDataSource.GetIndexSearcher(indexIdentifier)); readOnlyDataSource.Force(); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void setupIndexInfrastructure() throws Exception private void SetupIndexInfrastructure() { DatabaseLayout databaseLayout = _testDirectory.databaseLayout(); _indexStore = new IndexConfigStore(databaseLayout, _fileSystemRule.get()); _indexStore.set(typeof(Node), INDEX_NAME, MapUtil.stringMap(Org.Neo4j.Graphdb.index.IndexManager_Fields.PROVIDER, "lucene", "type", "fulltext")); LuceneDataSource luceneDataSource = new LuceneDataSource(databaseLayout, Config.defaults(), _indexStore, _fileSystemRule.get(), OperationalMode.single); try { luceneDataSource.Init(); luceneDataSource.GetIndexSearcher(_indexIdentifier); } finally { luceneDataSource.Shutdown(); } }