Skip to content

Commit d6a85b0

Browse files
committed
test: improve tests
Signed-off-by: Marcos Tischer Vallim <tischer@gmail.com>
1 parent a945150 commit d6a85b0

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

amazon-sns-java-messaging-lib-v1/src/main/java/com/amazon/sns/messaging/lib/core/AmazonSnsTemplate.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public static <E> Builder<AmazonSNS, PublishBatchRequest, PublishBatchResult, E,
7171
/**
7272
* Creates a new v1 SNS template with default settings.
7373
*
74+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} instead
7475
* @param amazonSnsClient the v1 {@link AmazonSNS} client
7576
* @param topicProperty the topic configuration
7677
*/
@@ -84,6 +85,7 @@ public AmazonSnsTemplate(
8485
/**
8586
* Creates a new v1 SNS template with a custom publish decorator.
8687
*
88+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} and {@link Builder#publishDecorator(UnaryOperator)} instead
8789
* @param amazonSnsClient the v1 {@link AmazonSNS} client
8890
* @param topicProperty the topic configuration
8991
* @param publishDecorator a decorator for the publish batch request
@@ -99,6 +101,7 @@ public AmazonSnsTemplate(
99101
/**
100102
* Creates a new v1 SNS template with a custom topic request queue.
101103
*
104+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} and {@link Builder#topicRequests(BlockingQueue)} instead
102105
* @param amazonSnsClient the v1 {@link AmazonSNS} client
103106
* @param topicProperty the topic configuration
104107
* @param topicRequests the blocking queue for topic requests
@@ -114,6 +117,7 @@ public AmazonSnsTemplate(
114117
/**
115118
* Creates a new v1 SNS template with a custom queue and publish decorator.
116119
*
120+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} with {@link Builder#topicRequests(BlockingQueue)} and {@link Builder#publishDecorator(UnaryOperator)} instead
117121
* @param amazonSnsClient the v1 {@link AmazonSNS} client
118122
* @param topicProperty the topic configuration
119123
* @param topicRequests the blocking queue for topic requests
@@ -131,6 +135,7 @@ public AmazonSnsTemplate(
131135
/**
132136
* Creates a new v1 SNS template with a custom ObjectMapper.
133137
*
138+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} and {@link Builder#objectMapper(ObjectMapper)} instead
134139
* @param amazonSnsClient the v1 {@link AmazonSNS} client
135140
* @param topicProperty the topic configuration
136141
* @param objectMapper the Jackson ObjectMapper for payload serialization
@@ -146,6 +151,7 @@ public AmazonSnsTemplate(
146151
/**
147152
* Creates a new v1 SNS template with a custom ObjectMapper and publish decorator.
148153
*
154+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} with {@link Builder#objectMapper(ObjectMapper)} and {@link Builder#publishDecorator(UnaryOperator)} instead
149155
* @param amazonSnsClient the v1 {@link AmazonSNS} client
150156
* @param topicProperty the topic configuration
151157
* @param objectMapper the Jackson ObjectMapper for payload serialization
@@ -163,6 +169,7 @@ public AmazonSnsTemplate(
163169
/**
164170
* Creates a new v1 SNS template with a custom queue and ObjectMapper.
165171
*
172+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} with {@link Builder#topicRequests(BlockingQueue)} and {@link Builder#objectMapper(ObjectMapper)} instead
166173
* @param amazonSnsClient the v1 {@link AmazonSNS} client
167174
* @param topicProperty the topic configuration
168175
* @param topicRequests the blocking queue for topic requests
@@ -180,6 +187,7 @@ public AmazonSnsTemplate(
180187
/**
181188
* Creates a new v1 SNS template with full custom configuration.
182189
*
190+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} with builder setters instead
183191
* @param amazonSnsClient the v1 {@link AmazonSNS} client
184192
* @param topicProperty the topic configuration
185193
* @param topicRequests the blocking queue for topic requests

amazon-sns-java-messaging-lib-v2/src/main/java/com/amazon/sns/messaging/lib/core/AmazonSnsTemplate.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public static <E> Builder<SnsClient, PublishBatchRequest, PublishBatchResponse,
7272
/**
7373
* Creates a new v2 SNS template with default settings.
7474
*
75+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} instead
7576
* @param amazonSnsClient the v2 {@link SnsClient}
7677
* @param topicProperty the topic configuration
7778
*/
@@ -85,6 +86,7 @@ public AmazonSnsTemplate(
8586
/**
8687
* Creates a new v2 SNS template with a custom publish decorator.
8788
*
89+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} and {@link Builder#publishDecorator(UnaryOperator)} instead
8890
* @param amazonSnsClient the v2 {@link SnsClient}
8991
* @param topicProperty the topic configuration
9092
* @param publishDecorator a decorator for the publish batch request
@@ -100,6 +102,7 @@ public AmazonSnsTemplate(
100102
/**
101103
* Creates a new v2 SNS template with a custom topic request queue.
102104
*
105+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} and {@link Builder#topicRequests(BlockingQueue)} instead
103106
* @param amazonSnsClient the v2 {@link SnsClient}
104107
* @param topicProperty the topic configuration
105108
* @param topicRequests the blocking queue for topic requests
@@ -115,6 +118,7 @@ public AmazonSnsTemplate(
115118
/**
116119
* Creates a new v2 SNS template with a custom queue and publish decorator.
117120
*
121+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} with {@link Builder#topicRequests(BlockingQueue)} and {@link Builder#publishDecorator(UnaryOperator)} instead
118122
* @param amazonSnsClient the v2 {@link SnsClient}
119123
* @param topicProperty the topic configuration
120124
* @param topicRequests the blocking queue for topic requests
@@ -132,6 +136,7 @@ public AmazonSnsTemplate(
132136
/**
133137
* Creates a new v2 SNS template with a custom ObjectMapper.
134138
*
139+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} and {@link Builder#objectMapper(ObjectMapper)} instead
135140
* @param amazonSnsClient the v2 {@link SnsClient}
136141
* @param topicProperty the topic configuration
137142
* @param objectMapper the Jackson ObjectMapper for payload serialization
@@ -147,6 +152,7 @@ public AmazonSnsTemplate(
147152
/**
148153
* Creates a new v2 SNS template with a custom ObjectMapper and publish decorator.
149154
*
155+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} with {@link Builder#objectMapper(ObjectMapper)} and {@link Builder#publishDecorator(UnaryOperator)} instead
150156
* @param amazonSnsClient the v2 {@link SnsClient}
151157
* @param topicProperty the topic configuration
152158
* @param objectMapper the Jackson ObjectMapper for payload serialization
@@ -164,6 +170,7 @@ public AmazonSnsTemplate(
164170
/**
165171
* Creates a new v2 SNS template with a custom queue and ObjectMapper.
166172
*
173+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} with {@link Builder#topicRequests(BlockingQueue)} and {@link Builder#objectMapper(ObjectMapper)} instead
167174
* @param amazonSnsClient the v2 {@link SnsClient}
168175
* @param topicProperty the topic configuration
169176
* @param topicRequests the blocking queue for topic requests
@@ -181,6 +188,7 @@ public AmazonSnsTemplate(
181188
/**
182189
* Creates a new v2 SNS template with full custom configuration.
183190
*
191+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} with builder setters instead
184192
* @param amazonSnsClient the v2 {@link SnsClient}
185193
* @param topicProperty the topic configuration
186194
* @param topicRequests the blocking queue for topic requests

0 commit comments

Comments
 (0)