Skip to content

Commit 49eb0ef

Browse files
committed
Merge branch '2.19'
2 parents b57f440 + df46029 commit 49eb0ef

18 files changed

+62
-137
lines changed

pom.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -181,21 +181,6 @@ alternative support for serializing POJOs as XML and deserializing XML as pojos.
181181
<groupId>com.google.code.maven-replacer-plugin</groupId>
182182
<artifactId>replacer</artifactId>
183183
</plugin>
184-
<!-- Need to skip known-failing tests for build... -->
185-
<plugin>
186-
<groupId>org.apache.maven.plugins</groupId>
187-
<artifactId>maven-surefire-plugin</artifactId>
188-
<version>${version.plugin.surefire}</version>
189-
<configuration>
190-
<excludes>
191-
<exclude>**/failing/**/*.java</exclude>
192-
</excludes>
193-
<includes>
194-
<include>**/Test*.java</include>
195-
<include>**/*Test.java</include>
196-
</includes>
197-
</configuration>
198-
</plugin>
199184
<!-- 05-Jul-2020, tatu: Add gradle module metadata -->
200185
<plugin>
201186
<groupId>de.jjohannes</groupId>

src/test/java/module-info.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
opens tools.jackson.dataformat.xml.deser.convert;
4646
opens tools.jackson.dataformat.xml.deser.creator;
4747
opens tools.jackson.dataformat.xml.dos;
48-
opens tools.jackson.dataformat.xml.failing;
49-
opens tools.jackson.dataformat.xml.failing.records;
5048
opens tools.jackson.dataformat.xml.fuzz;
5149
opens tools.jackson.dataformat.xml.jaxb;
5250
opens tools.jackson.dataformat.xml.incr;
@@ -55,6 +53,9 @@
5553
opens tools.jackson.dataformat.xml.misc;
5654
opens tools.jackson.dataformat.xml.node;
5755
opens tools.jackson.dataformat.xml.stream;
56+
opens tools.jackson.dataformat.xml.tofix;
57+
opens tools.jackson.dataformat.xml.tofix.records;
58+
opens tools.jackson.dataformat.xml.testutil.failure;
5859
opens tools.jackson.dataformat.xml.vld;
5960
opens tools.jackson.dataformat.xml.woodstox;
6061
}

src/test/java/tools/jackson/dataformat/xml/failing/XmlWrapperClass517Test.java

Lines changed: 0 additions & 105 deletions
This file was deleted.

src/test/java/tools/jackson/dataformat/xml/failing/ConflictingGetters27Test.java renamed to src/test/java/tools/jackson/dataformat/xml/tofix/ConflictingGetters27Test.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tools.jackson.dataformat.xml.failing;
1+
package tools.jackson.dataformat.xml.tofix;
22

33
import org.junit.jupiter.api.Test;
44

@@ -8,6 +8,7 @@
88
import tools.jackson.dataformat.xml.XmlTestUtil;
99
import tools.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
1010
import tools.jackson.dataformat.xml.annotation.JacksonXmlProperty;
11+
import tools.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;
1112

1213
import static org.junit.jupiter.api.Assertions.assertNotNull;
1314

@@ -54,6 +55,7 @@ public BeanInfo() { }
5455
*/
5556

5657
// [dataformat-xml#27]
58+
@JacksonTestFailureExpected
5759
@Test
5860
public void testIssue27() throws Exception
5961
{
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tools.jackson.dataformat.xml.failing;
1+
package tools.jackson.dataformat.xml.tofix;
22

33
import java.util.Arrays;
44
import java.util.List;
@@ -13,6 +13,7 @@
1313
import tools.jackson.dataformat.xml.XmlTestUtil;
1414
import tools.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
1515
import tools.jackson.dataformat.xml.annotation.JacksonXmlProperty;
16+
import tools.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;
1617

1718
import static org.junit.jupiter.api.Assertions.assertEquals;
1819
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -50,6 +51,7 @@ public Body149(@JacksonXmlProperty(localName="type")
5051
private final ObjectMapper MAPPER = newMapper();
5152

5253
// [dataformat-xml#149]
54+
@JacksonTestFailureExpected
5355
@Test
5456
public void testElementWrapper149() throws Exception
5557
{

src/test/java/tools/jackson/dataformat/xml/failing/EnumIssue9Test.java renamed to src/test/java/tools/jackson/dataformat/xml/tofix/EnumIssue9Test.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
package tools.jackson.dataformat.xml.failing;
1+
package tools.jackson.dataformat.xml.tofix;
22

33
import org.junit.jupiter.api.Test;
44

55
import com.fasterxml.jackson.annotation.JsonTypeInfo;
66

77
import tools.jackson.dataformat.xml.XmlMapper;
88
import tools.jackson.dataformat.xml.XmlTestUtil;
9+
import tools.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;
910

1011
import static org.junit.jupiter.api.Assertions.*;
1112

@@ -33,6 +34,7 @@ public UntypedEnumBean() { }
3334

3435
private final XmlMapper MAPPER = newMapper();
3536

37+
@JacksonTestFailureExpected
3638
@Test
3739
public void testUntypedEnum() throws Exception
3840
{

src/test/java/tools/jackson/dataformat/xml/failing/Issue37AdapterTest.java renamed to src/test/java/tools/jackson/dataformat/xml/tofix/Issue37AdapterTest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tools.jackson.dataformat.xml.failing;
1+
package tools.jackson.dataformat.xml.tofix;
22

33
import java.io.UnsupportedEncodingException;
44
import java.net.URLDecoder;
@@ -15,6 +15,7 @@
1515
import tools.jackson.databind.*;
1616
import tools.jackson.databind.introspect.JacksonAnnotationIntrospector;
1717
import tools.jackson.dataformat.xml.*;
18+
import tools.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;
1819

1920
import static org.junit.jupiter.api.Assertions.assertEquals;
2021

@@ -127,6 +128,7 @@ public void setUp() throws Exception
127128
/**********************************************************************
128129
*/
129130

131+
@JacksonTestFailureExpected
130132
@Test
131133
public void testSimpleKeyMap() throws Exception
132134
{
@@ -137,6 +139,7 @@ public void testSimpleKeyMap() throws Exception
137139
_jaxbMapper.writeValueAsString(bean));
138140
}
139141

142+
@JacksonTestFailureExpected
140143
@Test
141144
public void testNeedEncodingKeyMap() throws Exception
142145
{
@@ -149,6 +152,7 @@ public void testNeedEncodingKeyMap() throws Exception
149152
xml);
150153
}
151154

155+
@JacksonTestFailureExpected
152156
@Test
153157
public void testSimpleKeyMapSimpleAnnotation() throws Exception
154158
{
@@ -160,6 +164,7 @@ public void testSimpleKeyMapSimpleAnnotation() throws Exception
160164
_jaxbMapper.writeValueAsString(bean));
161165
}
162166

167+
@JacksonTestFailureExpected
163168
@Test
164169
public void testNeedEncodingKeyMapSimpleAnnotation() throws Exception
165170
{
@@ -171,6 +176,7 @@ public void testNeedEncodingKeyMapSimpleAnnotation() throws Exception
171176
_jaxbMapper.writeValueAsString(bean));
172177
}
173178

179+
@JacksonTestFailureExpected
174180
@Test
175181
public void testNeedEncodingKeyMap_nonJaxb() throws Exception
176182
{
@@ -182,6 +188,7 @@ public void testNeedEncodingKeyMap_nonJaxb() throws Exception
182188
_nonJaxbMapper.writeValueAsString(bean));
183189
}
184190

191+
@JacksonTestFailureExpected
185192
@Test
186193
public void testNeedEncodingKeyMapSimpleAnnotation_nonJaxb() throws Exception
187194
{

src/test/java/tools/jackson/dataformat/xml/failing/PojoAsAttributeSer128Test.java renamed to src/test/java/tools/jackson/dataformat/xml/tofix/PojoAsAttributeSer128Test.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tools.jackson.dataformat.xml.failing;
1+
package tools.jackson.dataformat.xml.tofix;
22

33
import org.junit.jupiter.api.Test;
44

@@ -8,6 +8,7 @@
88
import tools.jackson.dataformat.xml.XmlMapper;
99
import tools.jackson.dataformat.xml.XmlTestUtil;
1010
import tools.jackson.dataformat.xml.annotation.JacksonXmlProperty;
11+
import tools.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;
1112

1213
import static org.junit.jupiter.api.Assertions.assertEquals;
1314

@@ -39,6 +40,7 @@ static class Container {
3940

4041
private final XmlMapper MAPPER = newMapper();
4142

43+
@JacksonTestFailureExpected
4244
@Test
4345
public void testAttributeDeser128() throws Exception
4446
{

src/test/java/tools/jackson/dataformat/xml/failing/PolymorphicIssue4Test.java renamed to src/test/java/tools/jackson/dataformat/xml/tofix/PolymorphicIssue4Test.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
package tools.jackson.dataformat.xml.failing;
1+
package tools.jackson.dataformat.xml.tofix;
22

33
import org.junit.jupiter.api.Test;
44

55
import com.fasterxml.jackson.annotation.JsonTypeInfo;
66

77
import tools.jackson.dataformat.xml.XmlMapper;
88
import tools.jackson.dataformat.xml.XmlTestUtil;
9+
import tools.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;
910

1011
import static org.junit.jupiter.api.Assertions.assertEquals;
1112
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -77,6 +78,7 @@ public ClassArrayWrapper() { }
7778
*/
7879
// Does not work since array wrapping is not explicitly forced (unlike with collection
7980
// property of a bean
81+
@JacksonTestFailureExpected
8082
@Test
8183
public void testAsClassArray() throws Exception
8284
{
@@ -89,6 +91,7 @@ public void testAsClassArray() throws Exception
8991

9092
// Hmmh. Does not yet quite work either, since we do not properly force
9193
// array context when writing...
94+
@JacksonTestFailureExpected
9295
@Test
9396
public void testAsWrappedClassArray() throws Exception
9497
{

src/test/java/tools/jackson/dataformat/xml/failing/PolymorphicList426Test.java renamed to src/test/java/tools/jackson/dataformat/xml/tofix/PolymorphicList426Test.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tools.jackson.dataformat.xml.failing;
1+
package tools.jackson.dataformat.xml.tofix;
22

33
import java.util.List;
44

@@ -9,9 +9,11 @@
99
import tools.jackson.databind.*;
1010
import tools.jackson.databind.annotation.JsonTypeIdResolver;
1111
import tools.jackson.databind.jsontype.impl.TypeIdResolverBase;
12+
1213
import tools.jackson.dataformat.xml.XmlTestUtil;
1314
import tools.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
1415
import tools.jackson.dataformat.xml.annotation.JacksonXmlProperty;
16+
import tools.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;
1517

1618
import static org.junit.jupiter.api.Assertions.assertEquals;
1719
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -89,6 +91,7 @@ public JsonTypeInfo.Id getMechanism() {
8991
private final ObjectMapper MAPPER = newMapper();
9092

9193
// [dataformat-xml#426]
94+
@JacksonTestFailureExpected
9295
@Test
9396
public void testPolymorphicList426() throws Exception
9497
{

0 commit comments

Comments
 (0)