예제 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void closeMustThrowIfAnyThrow() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void CloseMustThrowIfAnyThrow()
        {
            foreach (IndexSlot indexSlot in FusionVersion.aliveSlots())
            {
                FusionIndexTestHelp.VerifyFusionCloseThrowOnSingleCloseThrow(_updaters[indexSlot], _fusionIndexUpdater);
                InitiateMocks();
            }
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void allEntriesReaderMustThrowIfOneThrow() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void AllEntriesReaderMustThrowIfOneThrow()
        {
            foreach (IndexAccessor failingAccessor in _aliveAccessors)
            {
                BoundedIterable <long> failingReader = null;
                foreach (IndexAccessor aliveAccessor in _aliveAccessors)
                {
                    BoundedIterable <long> reader = MockSingleAllEntriesReader(aliveAccessor, Collections.emptyList());
                    if (aliveAccessor == failingAccessor)
                    {
                        failingReader = reader;
                    }
                }

                // then
                BoundedIterable <long> fusionAllEntriesReader = _fusionIndexAccessor.newAllEntriesReader();
                FusionIndexTestHelp.VerifyFusionCloseThrowOnSingleCloseThrow(failingReader, fusionAllEntriesReader);
            }
        }