Skip to content

Commit 67a3edc

Browse files
committed
feat: support Fory JSON serialization
Signed-off-by: Marcos Tischer Vallim <tischer@gmail.com>
1 parent 600100c commit 67a3edc

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

amazon-sns-java-messaging-lib-template/src/main/java/com/amazon/sns/messaging/lib/core/AbstractAmazonSnsTemplate.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,6 @@ public static final class Builder<C, R, O, E, T extends AbstractAmazonSnsTemplat
158158
*/
159159
private JsonMapper jsonMapper = JsonMapperFactory.create(new ObjectMapper());
160160

161-
/**
162-
* The ForyJson for serializing payloads.
163-
*/
164-
private final ForyJson foryJson = ForyJson.builder().build();
165-
166161
/**
167162
* Decorator function applied to the publish batch request before sending.
168163
*/

amazon-sns-java-messaging-lib-template/src/test/java/com/amazon/sns/messaging/lib/core/AbstractAmazonSnsTemplateTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,6 @@ void testBuilderDefaultObjectMapperIsNotNull() {
285285
assertThat(builder.getJsonMapper(), is(instanceOf(JsonMapperFactory.JsonMapperJackson.class)));
286286
}
287287

288-
@Test
289-
void testBuilderDefaultForyJsonIsNotNull() {
290-
final TopicProperty topicProperty = mock(TopicProperty.class);
291-
final AbstractAmazonSnsTemplate.Builder<Object, Object, Object, String, ?> builder = new AbstractAmazonSnsTemplate.Builder<>(b -> null, new Object(), topicProperty);
292-
293-
assertThat(builder.getForyJson(), is(notNullValue()));
294-
}
295-
296288
@Test
297289
void testBuilderDefaultMeterRegistryIsSimpleMeterRegistry() {
298290
final TopicProperty topicProperty = mock(TopicProperty.class);

0 commit comments

Comments
 (0)