Skip to content

Commit b257358

Browse files
committed
Uncomment now-succeeding container coercion (from empty String) tests
1 parent 6d5cf78 commit b257358

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/java/com/fasterxml/jackson/dataformat/xml/deser/NullConversionsGenericTest.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package com.fasterxml.jackson.dataformat.xml.deser;
22

3+
import java.util.List;
4+
import java.util.Map;
5+
36
import com.fasterxml.jackson.annotation.JsonSetter;
47
import com.fasterxml.jackson.annotation.Nulls;
58
import com.fasterxml.jackson.core.type.TypeReference;
@@ -83,7 +86,6 @@ public void testNullsToGenericPojo() throws Exception
8386

8487
// 04-May-2018, tatu: In theory could be supportable, but wrapping (or not)
8588
// of Collections, other requirements, make it... not that easy.
86-
/*
8789
public void testNullsToEmptyCollection() throws Exception
8890
{
8991
GeneralEmpty<List<String>> result = MAPPER.readValue(EMPTY_XML,
@@ -97,18 +99,15 @@ public void testNullsToEmptyCollection() throws Exception
9799
assertNotNull(result2.value);
98100
assertEquals(0, result2.value.size());
99101
}
100-
*/
101102

102103
// 04-May-2018, tatu: Maps and XML do not mix well, alas:
103-
/*
104104
public void testNullsToEmptyMap() throws Exception
105105
{
106106
GeneralEmpty<Map<String,String>> result = MAPPER.readValue(EMPTY_XML,
107107
new TypeReference<GeneralEmpty<Map<String,String>>>() { });
108108
assertNotNull(result.value);
109109
assertEquals(0, result.value.size());
110110
}
111-
*/
112111

113112
public void testNullsToEmptyArrays() throws Exception
114113
{

0 commit comments

Comments
 (0)