Skip to content

Commit 3eca3b6

Browse files
committed
Prepare for 2.12.2 release
1 parent 8586d3d commit 3eca3b6

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

guava/src/test/java/com/fasterxml/jackson/datatype/guava/TestImmutables.java

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33
import java.util.Iterator;
44

55
import com.fasterxml.jackson.annotation.JsonTypeInfo;
6+
67
import com.fasterxml.jackson.core.type.TypeReference;
8+
79
import com.fasterxml.jackson.databind.DeserializationFeature;
810
import com.fasterxml.jackson.databind.JavaType;
911
import com.fasterxml.jackson.databind.JsonMappingException;
1012
import com.fasterxml.jackson.databind.ObjectMapper;
13+
1114
import com.google.common.collect.*;
1215

1316
/**
1417
* Unit tests for verifying that various immutable types
1518
* (like {@link ImmutableList}, {@link ImmutableMap} and {@link ImmutableSet})
1619
* work as expected.
17-
*
18-
* @author tsaloranta
1920
*/
2021
public class TestImmutables extends ModuleTestBase
2122
{
@@ -54,6 +55,14 @@ public void testWithoutSerializers() throws Exception
5455
ImmutableMap<String,Integer> map = ImmutableMap.<String,Integer>builder()
5556
.put("a", 1).put("b", 2).build();
5657
assertEquals("{\"a\":1,\"b\":2}", MAPPER.writeValueAsString(map));
58+
59+
assertEquals(a2q("{'message':'Hello, world!'}"),
60+
MAPPER.writeValueAsString(ImmutableMap.of("message", "Hello, world!")));
61+
assertEquals(a2q("{'id':3,'name':'Bob'}"),
62+
MAPPER.writeValueAsString(ImmutableMap.of("id", 3, "name", "Bob")));
63+
64+
assertEquals("[12,true,0.25]",
65+
MAPPER.writeValueAsString(ImmutableList.of(12, true, 0.25)));
5766
}
5867

5968
/**

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>com.fasterxml.jackson</groupId>
55
<artifactId>jackson-base</artifactId>
6-
<version>2.12.2-SNAPSHOT</version>
6+
<version>2.12.2</version>
77
</parent>
88
<groupId>com.fasterxml.jackson.datatype</groupId>
99
<artifactId>jackson-datatypes-collections</artifactId>

release-notes/VERSION-2.x

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Active Maintainers:
1616
=== Releases ===
1717
------------------------------------------------------------------------
1818

19-
2.12.2 (not yet released)
19+
2.12.2 (03-Mar-2021)
2020

2121
- Add missing "provides Module" for eclipse-collections module-info (JPMS)
2222

0 commit comments

Comments
 (0)