Package zipkin2.junit
Class HttpFailure
- java.lang.Object
- 
- zipkin2.junit.HttpFailure
 
- 
 public final class HttpFailure extends Object Instrumentation that usePOSTendpoints need to survive failures. Besides simply not starting the zipkin server, you can enqueue failures like this to test edge cases. For example, that you log a failure when a 400 code is returned.
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpFailuredisconnectDuringBody()Ex a network partition occurs in the middle of the POST requeststatic HttpFailuresendErrorResponse(int code, String body)Ex code 400 when the server cannot read the spans
 
- 
- 
- 
Method Detail- 
disconnectDuringBodypublic static HttpFailure disconnectDuringBody() Ex a network partition occurs in the middle of the POST request
 - 
sendErrorResponsepublic static HttpFailure sendErrorResponse(int code, String body) Ex code 400 when the server cannot read the spans
 
- 
 
-