public abstract class AbstractIntegrationTest extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
protected static int |
POLL_INTERVAL |
protected org.springframework.web.client.RestTemplate |
restTemplate |
protected static int |
TIMEOUT |
Constructor and Description |
---|
AbstractIntegrationTest() |
Modifier and Type | Method and Description |
---|---|
protected Runnable |
allSpansWereRegisteredInZipkinWithTraceIdEqualTo(long traceId) |
protected List<String> |
annotationsNotFoundInZipkin(List<zipkin.Span> spans) |
static com.jayway.awaitility.core.ConditionFactory |
await() |
protected Runnable |
checkServerHealth(String appName,
tools.AbstractIntegrationTest.RequestExchanger requestExchanger) |
protected org.springframework.http.ResponseEntity<String> |
checkStateOfTheTraceId(long traceId) |
void |
clearSpanAfter() |
void |
clearSpanBefore() |
protected org.springframework.http.ResponseEntity<String> |
endpointToCheckZipkinServerHealth() |
protected org.springframework.http.ResponseEntity<String> |
exchangeRequest(URI uri) |
protected String |
getAppName() |
protected String |
getRequiredBinaryAnnotationName() |
protected int |
getZipkinServerPort() |
protected String |
getZipkinServicesQueryUrl() |
protected String |
getZipkinTraceQueryUrl() |
protected Runnable |
httpMessageWithTraceIdInHeadersIsSuccessfullySent(String endpoint,
long traceId) |
protected Runnable |
httpMessageWithTraceIdInHeadersIsSuccessfullySent(String endpoint,
long traceId,
Long spanId) |
protected List<String> |
serviceNamesNotFoundInZipkin(List<zipkin.Span> spans) |
protected Runnable |
zipkinServerIsUp() |
protected static final org.apache.commons.logging.Log log
protected static final int POLL_INTERVAL
protected static final int TIMEOUT
protected org.springframework.web.client.RestTemplate restTemplate
public void clearSpanBefore()
public void clearSpanAfter()
public static com.jayway.awaitility.core.ConditionFactory await()
protected Runnable zipkinServerIsUp()
protected Runnable checkServerHealth(String appName, tools.AbstractIntegrationTest.RequestExchanger requestExchanger)
protected org.springframework.http.ResponseEntity<String> endpointToCheckZipkinServerHealth()
protected int getZipkinServerPort()
protected org.springframework.http.ResponseEntity<String> checkStateOfTheTraceId(long traceId)
protected String getZipkinTraceQueryUrl()
protected String getZipkinServicesQueryUrl()
protected Runnable httpMessageWithTraceIdInHeadersIsSuccessfullySent(String endpoint, long traceId)
protected Runnable httpMessageWithTraceIdInHeadersIsSuccessfullySent(String endpoint, long traceId, Long spanId)
protected Runnable allSpansWereRegisteredInZipkinWithTraceIdEqualTo(long traceId)
protected List<String> serviceNamesNotFoundInZipkin(List<zipkin.Span> spans)
protected String getAppName()
protected List<String> annotationsNotFoundInZipkin(List<zipkin.Span> spans)
protected String getRequiredBinaryAnnotationName()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.