A B C E G H I J M N O P R S T U V 
All Classes All Packages

A

accept(V, Throwable) - Method in class brave.test.util.AssertableCallback
 
AssertableCallback<V> - Class in brave.test.util
A callback of a single result or error that supports assertions.
AssertableCallback() - Constructor for class brave.test.util.AssertableCallback
 
assertChildOf(MutableSpan, MutableSpan) - Method in class brave.test.ITRemote
 
assertChildOf(MutableSpan, TraceContext) - Method in class brave.test.ITRemote
 
assertChildOf(TraceContext, TraceContext) - Method in class brave.test.ITRemote
 
assertNoError(MutableSpan) - Method in class brave.test.ITRemote
 
assertNoErrorTag(MutableSpan) - Method in class brave.test.ITRemote
 
assertRunIsUnloadable(Class<? extends Runnable>, ClassLoader) - Static method in class brave.test.util.ClassLoaders
Runs the type in a new classloader that recreates brave classes
assertRunIsUnloadableWithSupplier(Class<? extends ClassLoaders.ConsumerRunnable<T>>, Class<? extends Supplier<? extends T>>) - Static method in class brave.test.util.ClassLoaders
Runs the assertion in a new classloader.
assertSameIds(MutableSpan, TraceContext) - Method in class brave.test.ITRemote
Useful for checking server spans when Tracing.Builder.supportsJoin(boolean).
assertSequential(MutableSpan, MutableSpan) - Method in class brave.test.ITRemote
Ensures the first finished before the other started.
assertSpanInInterval(MutableSpan, long, long) - Method in class brave.test.ITRemote
Ensures the inputs are parent and child, the parent starts before the child, and the duration of the child is inside the parent's duration.
assertThatError() - Method in class brave.test.util.AssertableCallback
 
assertThatSuccess() - Method in class brave.test.util.AssertableCallback
 

B

BAGGAGE_FIELD - Static variable in class brave.test.ITRemote
 
BAGGAGE_FIELD_KEY - Static variable in class brave.test.ITRemote
Sets a propagation key for ITRemote.BAGGAGE_FIELD, which can work with JMS (that prohibits the '-' character).
begin(TraceContext, MutableSpan, TraceContext) - Method in class brave.test.IntegrationTestSpanHandler
 
blockOnGC() - Static method in class brave.test.util.GarbageCollectors
Runs the garbage collector and waits until all of the provided WeakReference are cleared, indicating the referenced objects have been collected.
brave.test - package brave.test
 
brave.test.propagation - package brave.test.propagation
 
brave.test.util - package brave.test.util
 
builderSupplier() - Method in class brave.test.propagation.CurrentTraceContextTest
 

C

checkForLeakedScopes() - Method in class brave.test.ITRemote
Override to disable scope leak enforcement.
ClassLoaders - Class in brave.test.util
 
ClassLoaders() - Constructor for class brave.test.util.ClassLoaders
 
ClassLoaders.ConsumerRunnable<T> - Class in brave.test.util
 
clear() - Method in class brave.test.TestSpanHandler
 
close() - Method in class brave.test.ITRemote
This closes the current instance of tracing, to prevent it from being accidentally visible to other test classes which call Tracing.current().
ConsumerRunnable() - Constructor for class brave.test.util.ClassLoaders.ConsumerRunnable
 
context - Variable in class brave.test.propagation.CurrentTraceContextTest
 
CORRELATION_FIELD - Static variable in class brave.test.propagation.CurrentTraceContextTest
 
currentTraceContext - Variable in class brave.test.ITRemote
 
currentTraceContext - Variable in class brave.test.propagation.CurrentTraceContextTest
 
currentTraceContextBuilder() - Method in class brave.test.ITRemote
Subclass to override the builder.
CurrentTraceContextTest - Class in brave.test.propagation
 
CurrentTraceContextTest() - Constructor for class brave.test.propagation.CurrentTraceContextTest
 

E

end(TraceContext, MutableSpan, SpanHandler.Cause) - Method in class brave.test.IntegrationTestSpanHandler
 
end(TraceContext, MutableSpan, SpanHandler.Cause) - Method in class brave.test.TestSpanHandler
 

G

GarbageCollectors - Class in brave.test.util
Utilities for working with the garbage collector in tests.
get(int) - Method in class brave.test.TestSpanHandler
 
get(Map<String, String>, String) - Method in class brave.test.propagation.PropagationTest.MapEntry
 

H

handlesAbandoned() - Method in class brave.test.IntegrationTestSpanHandler
 

I

ignoreAnySpans() - Method in class brave.test.IntegrationTestSpanHandler
Call this before using an Assumptions.assumeTrue(boolean), when there's a chance a span was finished.
inject(Map<String, String>, SamplingFlags) - Method in class brave.test.propagation.PropagationTest
There's currently no standard API to just inject sampling flags, as IDs are intended to be propagated.
inject(Map<String, String>, String, String, String, Boolean, Boolean) - Method in class brave.test.propagation.PropagationTest
 
IntegrationTestSpanHandler - Class in brave.test
This is a special span reporter for remote integration tests.
IntegrationTestSpanHandler() - Constructor for class brave.test.IntegrationTestSpanHandler
 
interceptTestMethod(InvocationInterceptor.Invocation<Void>, ReflectiveInvocationContext<Method>, ExtensionContext) - Method in class brave.test.IntegrationTestSpanHandler
 
is_inheritable(CurrentTraceContext) - Method in class brave.test.propagation.CurrentTraceContextTest
 
isnt_inheritable() - Method in class brave.test.propagation.CurrentTraceContextTest
 
iterator() - Method in class brave.test.TestSpanHandler
 
ITRemote - Class in brave.test
This is the base class for remote integration tests.
ITRemote() - Constructor for class brave.test.ITRemote
 

J

join() - Method in class brave.test.util.AssertableCallback
Returns the value after performing state checks

M

map - Variable in class brave.test.propagation.PropagationTest
 
MapEntry() - Constructor for class brave.test.propagation.PropagationTest.MapEntry
 

N

newInstance(Class<T>, ClassLoader) - Static method in class brave.test.util.ClassLoaders
Validating instance creator that ensures the supplier type is static or top-level
newTraceContext(SamplingFlags) - Method in class brave.test.ITRemote
Returns a trace context for use in propagation tests.
notYetSampledContext - Variable in class brave.test.propagation.CurrentTraceContextTest
 

O

onError(Throwable) - Method in class brave.test.util.AssertableCallback
Invoked when computation produces a possibly null value successfully.
onSuccess(V) - Method in class brave.test.util.AssertableCallback
Invoked when computation produces its potentially null value successfully.

P

propagation - Variable in class brave.test.propagation.PropagationSetterTest
 
propagation - Variable in class brave.test.propagation.PropagationTest
 
propagationFactory - Variable in class brave.test.ITRemote
 
PropagationSetterTest<R> - Class in brave.test.propagation
 
PropagationSetterTest() - Constructor for class brave.test.propagation.PropagationSetterTest
 
propagationSupplier() - Method in class brave.test.propagation.PropagationTest
 
PropagationTest - Class in brave.test.propagation
 
PropagationTest() - Constructor for class brave.test.propagation.PropagationTest
 
PropagationTest.MapEntry - Class in brave.test.propagation
 
put(Map<String, String>, String, String) - Method in class brave.test.propagation.PropagationTest.MapEntry
 

R

read(R, String) - Method in class brave.test.propagation.PropagationSetterTest
 
request() - Method in class brave.test.propagation.PropagationSetterTest
 
run() - Method in class brave.test.util.ClassLoaders.ConsumerRunnable
 

S

setListener(Runnable) - Method in class brave.test.util.AssertableCallback
 
setter() - Method in class brave.test.propagation.PropagationSetterTest
 
spans() - Method in class brave.test.TestSpanHandler
 

T

takeLocalSpan() - Method in class brave.test.IntegrationTestSpanHandler
Blocks until a local span was finished.
takeRemoteSpan(Span.Kind) - Method in class brave.test.IntegrationTestSpanHandler
Blocks until a remote span was finished.
takeRemoteSpanWithError(Span.Kind) - Method in class brave.test.IntegrationTestSpanHandler
Some frameworks swallow exceptions.
takeRemoteSpanWithError(Span.Kind, Throwable) - Method in class brave.test.IntegrationTestSpanHandler
takeRemoteSpanWithErrorMessage(Span.Kind, String) - Method in class brave.test.IntegrationTestSpanHandler
Use instead of IntegrationTestSpanHandler.takeRemoteSpanWithError(Kind, Throwable) when you cannot catch a reference to the actual raised exception during a test.
takeRemoteSpanWithErrorTag(Span.Kind, String) - Method in class brave.test.IntegrationTestSpanHandler
Like IntegrationTestSpanHandler.takeRemoteSpan(Kind) except an error tag must match the given value.
testName - Variable in class brave.test.ITRemote
 
testSpanHandler - Variable in class brave.test.ITRemote
 
TestSpanHandler - Class in brave.test
Simpler variant of IntegrationTestSpanHandler appropriate for single-threaded unit-tests.
TestSpanHandler() - Constructor for class brave.test.TestSpanHandler
 
toString() - Method in class brave.test.IntegrationTestSpanHandler
 
toString() - Method in class brave.test.TestSpanHandler
 
tracing - Variable in class brave.test.ITRemote
 
tracingBuilder(Sampler) - Method in class brave.test.ITRemote
 

U

unsampledContext - Variable in class brave.test.propagation.CurrentTraceContextTest
 

V

verifyImplicitContext(TraceContext) - Method in class brave.test.propagation.CurrentTraceContextTest
 
A B C E G H I J M N O P R S T U V 
All Classes All Packages