コード例 #1
0
//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();
        }
コード例 #2
0
//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();
        }
コード例 #3
0
 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)));
 }
コード例 #4
0
//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");
        }
コード例 #5
0
//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();
        }
コード例 #6
0
//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();
        }