Package zipkin2.storage
Class ITTraces<T extends StorageComponent>
- java.lang.Object
- 
- zipkin2.storage.ITStorage<T>
- 
- zipkin2.storage.ITTraces<T>
 
 
- 
 public abstract class ITTraces<T extends StorageComponent> extends ITStorage<T> Base test forTraces.Subtypes should create a connection to a real backend, even if that backend is in-process. 
- 
- 
Constructor SummaryConstructors Constructor Description ITTraces()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureStorageForTest(StorageComponent.Builder storage)Configures aStorageComponent.Builderwith parameters for the test being executed.protected voidgetTrace_deduplicates(org.junit.jupiter.api.TestInfo testInfo)Ideally, storage backends can deduplicate identical documents as this will prevent some analysis problems such as double-counting dependency links or other statistics.protected voidgetTrace_differentiatesDebugFromShared(org.junit.jupiter.api.TestInfo testInfo)Prevents subtle bugs which can result in mixed-length traces from linking.protected voidgetTrace_returnsEmptyOnNotFound(org.junit.jupiter.api.TestInfo testInfo)protected voidgetTraces_differentiatesDebugFromShared(org.junit.jupiter.api.TestInfo testInfo)Prevents subtle bugs which can result in mixed-length traces from linking.protected voidgetTraces_onlyReturnsTracesThatMatch(org.junit.jupiter.api.TestInfo testInfo)protected voidgetTraces_returnsEmptyOnNotFound(org.junit.jupiter.api.TestInfo testInfo)- 
Methods inherited from class zipkin2.storage.ITStorageaccept, accept, assertGetTraceReturns, assertGetTraceReturns, assertGetTraceReturnsEmpty, assertGetTracesReturns, assertGetTracesReturns, assertGetTracesReturnsCount, assertGetTracesReturnsEmpty, assertGetTracesReturnsEmpty, blockWhileInFlight, checkStorage, clear, initializeStoragePerTest, names, newStorageBuilder, requestBuilder, returnsRawSpans, sortTrace, store, testSuffix, traces
 
- 
 
- 
- 
- 
Method Detail- 
configureStorageForTestprotected final void configureStorageForTest(StorageComponent.Builder storage) Description copied from class:ITStorageConfigures aStorageComponent.Builderwith parameters for the test being executed.- Specified by:
- configureStorageForTestin class- ITStorage<T extends StorageComponent>
 
 - 
getTrace_returnsEmptyOnNotFound@Test protected void getTrace_returnsEmptyOnNotFound(org.junit.jupiter.api.TestInfo testInfo) throws Exception- Throws:
- Exception
 
 - 
getTrace_differentiatesDebugFromShared@Test protected void getTrace_differentiatesDebugFromShared(org.junit.jupiter.api.TestInfo testInfo) throws ExceptionPrevents subtle bugs which can result in mixed-length traces from linking.- Throws:
- Exception
 
 - 
getTraces_onlyReturnsTracesThatMatch@Test protected void getTraces_onlyReturnsTracesThatMatch(org.junit.jupiter.api.TestInfo testInfo) throws Exception- Throws:
- Exception
 
 - 
getTraces_differentiatesDebugFromShared@Test protected void getTraces_differentiatesDebugFromShared(org.junit.jupiter.api.TestInfo testInfo) throws ExceptionPrevents subtle bugs which can result in mixed-length traces from linking.- Throws:
- Exception
 
 - 
getTraces_returnsEmptyOnNotFound@Test protected void getTraces_returnsEmptyOnNotFound(org.junit.jupiter.api.TestInfo testInfo) throws Exception- Throws:
- Exception
 
 - 
getTrace_deduplicates@Test protected void getTrace_deduplicates(org.junit.jupiter.api.TestInfo testInfo) throws ExceptionIdeally, storage backends can deduplicate identical documents as this will prevent some analysis problems such as double-counting dependency links or other statistics. While this test exists, it is known not all backends will be able to cheaply make it pass. In other words, it is optional.- Throws:
- Exception
 
 
- 
 
-