Class CurrentTraceContextTest


  • public abstract class CurrentTraceContextTest
    extends Object
    • Constructor Detail

      • CurrentTraceContextTest

        protected CurrentTraceContextTest()
    • Method Detail

      • verifyImplicitContext

        protected void verifyImplicitContext​(@Nullable
                                             TraceContext context)
      • currentSpan_defaultsToNull

        public void currentSpan_defaultsToNull()
      • newScope_retainsContext

        public void newScope_retainsContext()
      • maybeScope_retainsContext

        public void maybeScope_retainsContext()
      • newScope_noticesDifferentBaggageField

        public void newScope_noticesDifferentBaggageField()
      • ignoresNoopScopeDecorator

        public void ignoresNoopScopeDecorator()
      • newScope_decoratesWithDifferentScope

        public void newScope_decoratesWithDifferentScope()
      • maybeScope_decoratesWithDifferentScope

        public void maybeScope_decoratesWithDifferentScope()
      • newScope_noticesDifferentSpanId

        public void newScope_noticesDifferentSpanId()
      • maybeScope_noticesDifferentSpanId

        public void maybeScope_noticesDifferentSpanId()
      • newScope_noticesDifferentContext

        public void newScope_noticesDifferentContext()
      • maybeScope_noticesDifferentContext

        public void maybeScope_noticesDifferentContext()
      • maybeScope_doesntDuplicateContext

        public void maybeScope_doesntDuplicateContext()
      • newScope_canClearScope

        public void newScope_canClearScope()
      • maybeScope_canClearScope

        public void maybeScope_canClearScope()
      • maybeScope_doesntDuplicateContext_onNull

        public void maybeScope_doesntDuplicateContext_onNull()
      • attachesSpanInCallable_canClear

        public void attachesSpanInCallable_canClear()
                                             throws Exception
        Throws:
        Exception
      • attachesSpanInCallable

        public void attachesSpanInCallable()
                                    throws Exception
        Throws:
        Exception
      • restoresSpanAfterCallable

        public void restoresSpanAfterCallable()
                                       throws Exception
        Throws:
        Exception
      • attachesSpanInRunnable

        public void attachesSpanInRunnable()
      • restoresSpanAfterRunnable

        public void restoresSpanAfterRunnable()
                                       throws Exception
        Throws:
        Exception
      • unloadable_unused

        public void unloadable_unused()
      • unloadable_afterScopeClose

        public void unloadable_afterScopeClose()
      • notUnloadable_whenScopeLeaked

        public void notUnloadable_whenScopeLeaked()
        TODO: While it is an instrumentation bug to not close a scope, we should be tolerant. For example, considering weak references or similar.