//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldReturnMinusOneIfNoDataIsAvailableForLogRotation()
        public virtual void ShouldReturnMinusOneIfNoDataIsAvailableForLogRotation()
        {
            DefaultTransactionTracer tracer = new DefaultTransactionTracer(_clock, _monitor, _jobScheduler);

            _jobScheduler.runJob();

            assertEquals(0, tracer.NumberOfLogRotationEvents());
            assertEquals(0, tracer.LogRotationAccumulatedTotalTimeMillis());
            verifyZeroInteractions(_monitor);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldReturnZeroIfNoDataIsAvailable()
        public virtual void ShouldReturnZeroIfNoDataIsAvailable()
        {
            DefaultCheckPointerTracer tracer = new DefaultCheckPointerTracer(_clock, _monitor, _jobScheduler);

            _jobScheduler.runJob();

            assertEquals(0, tracer.NumberOfCheckPointEvents());
            assertEquals(0, tracer.CheckPointAccumulatedTotalTimeMillis());
            verifyZeroInteractions(_monitor);
        }
Exemplo n.º 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void untrackFinishedPopulations()
        public virtual void UntrackFinishedPopulations()
        {
            IndexPopulationJob populationJob = IndexPopulationJob;

            _jobController.startIndexPopulation(populationJob);

            assertThat(_jobController.PopulationJobs, hasSize(1));

            _executer.runJob();

            assertThat(_jobController.PopulationJobs, hasSize(0));
            verify(populationJob).run();
        }