Package zipkin2.junit.aws
Class AmazonSQSRule
java.lang.Object
org.junit.rules.ExternalResource
zipkin2.junit.aws.AmazonSQSRule
- All Implemented Interfaces:
org.junit.rules.TestRule
public class AmazonSQSRule
extends org.junit.rules.ExternalResource
-
Constructor Summary
Constructors Constructor Description AmazonSQSRule() -
Method Summary
Modifier and Type Method Description protected voidafter()protected voidbefore()java.util.List<zipkin2.Span>getSpans()java.util.List<zipkin2.Span>getSpans(boolean delete)intnotVisibleCount()intqueueCount()java.lang.StringqueueUrl()voidsend(java.lang.String body)AmazonSQSRulestart(int httpPort)
-
Constructor Details
-
AmazonSQSRule
public AmazonSQSRule()
-
-
Method Details
-
start
-
queueUrl
public java.lang.String queueUrl() -
before
protected void before()- Overrides:
beforein classorg.junit.rules.ExternalResource
-
after
protected void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-
queueCount
public int queueCount() -
notVisibleCount
public int notVisibleCount() -
getSpans
public java.util.List<zipkin2.Span> getSpans() -
getSpans
public java.util.List<zipkin2.Span> getSpans(boolean delete) -
send
public void send(java.lang.String body)
-