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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafter()protected voidbefore()List<zipkin2.Span>getSpans()List<zipkin2.Span>getSpans(boolean delete)intnotVisibleCount()intqueueCount()StringqueueUrl()voidsend(String body)AmazonSQSRulestart(int httpPort)
-
-
-
Method Detail
-
start
public AmazonSQSRule start(int httpPort)
-
queueUrl
public 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 List<zipkin2.Span> getSpans()
-
getSpans
public List<zipkin2.Span> getSpans(boolean delete)
-
send
public void send(String body)
-
-