//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void mustProduceDefaultImplementationWhenRequested() public virtual void MustProduceDefaultImplementationWhenRequested() { Tracers tracers = CreateTracers("default"); AssertDefaultImplementation(tracers); AssertNoWarning(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void mustProduceDefaultImplementationForNullConfiguration() public virtual void MustProduceDefaultImplementationForNullConfiguration() { Tracers tracers = CreateTracers(null); AssertDefaultImplementation(tracers); AssertNoWarning(); }
private void AssertDefaultImplementation(Tracers tracers) { assertThat(tracers.PageCacheTracer, instanceOf(typeof(DefaultPageCacheTracer))); assertThat(tracers.TransactionTracer, instanceOf(typeof(DefaultTransactionTracer))); assertThat(tracers.CheckPointTracer, instanceOf(typeof(DefaultCheckPointerTracer))); assertThat(tracers.PageCursorTracerSupplier, instanceOf(typeof(DefaultPageCursorTracerSupplier))); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void mustProduceDefaultImplementationWhenRequestingUnknownImplementation() public virtual void MustProduceDefaultImplementationWhenRequestingUnknownImplementation() { Tracers tracers = CreateTracers("there's nothing like this"); AssertDefaultImplementation(tracers); AssertWarning("there's nothing like this"); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void mustProduceDefaultImplementationWhenRequestedIgnoringCase() public virtual void MustProduceDefaultImplementationWhenRequestedIgnoringCase() { Tracers tracers = CreateTracers("DeFaUlT"); AssertDefaultImplementation(tracers); AssertNoWarning(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void mustProduceNullImplementationsWhenRequestedIgnoringCase() public virtual void MustProduceNullImplementationsWhenRequestedIgnoringCase() { Tracers tracers = CreateTracers("NuLl"); assertThat(tracers.PageCacheTracer, @is(PageCacheTracer.NULL)); assertThat(tracers.PageCursorTracerSupplier, @is(Org.Neo4j.Io.pagecache.tracing.cursor.PageCursorTracerSupplier_Fields.Null)); assertThat(tracers.TransactionTracer, @is(Org.Neo4j.Kernel.impl.transaction.tracing.TransactionTracer_Fields.Null)); AssertNoWarning(); }