Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void cancelingSinglePopulatorDoNotCancelAnyOther() throws org.neo4j.kernel.api.exceptions.index.FlipFailedKernelException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void CancelingSinglePopulatorDoNotCancelAnyOther()
        {
            IndexPopulator indexPopulator1 = CreateIndexPopulator();
            IndexPopulator indexPopulator2 = CreateIndexPopulator();

            IndexPopulation populationToCancel     = AddPopulator(indexPopulator1, 1);
            IndexPopulation populationToKeepActive = AddPopulator(indexPopulator2, 2);

            _multipleIndexPopulator.create();

            _multipleIndexPopulator.cancelIndexPopulation(populationToCancel);

            _multipleIndexPopulator.indexAllEntities();

            assertTrue(_multipleIndexPopulator.hasPopulators());

            _multipleIndexPopulator.flipAfterPopulation(false);

            verify(populationToKeepActive.Flipper).flip(any(typeof(Callable)), any(typeof(FailedIndexProxyFactory)));
        }
Example #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void indexAllEntities() throws org.neo4j.kernel.api.exceptions.index.IndexPopulationFailedKernelException
        private void IndexAllEntities()
        {
            _storeScan = _multiPopulator.indexAllEntities();
            _storeScan.run();
        }