Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JSTEP-10] Move /failing tests #709

Merged
merged 5 commits into from
Jan 20, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Move failing tests
JooHyukKim committed Jan 20, 2025
commit 006d66940f7822bfd11dabfb2e237ffdf6907c7a
15 changes: 0 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -183,21 +183,6 @@ alternative support for serializing POJOs as XML and deserializing XML as pojos.
</execution>
</executions>
</plugin>
<!-- Need to skip known-failing tests for build... -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${version.plugin.surefire}</version>
<configuration>
<excludes>
<exclude>**/failing/**/*.java</exclude>
</excludes>
<includes>
<include>**/Test*.java</include>
<include>**/*Test.java</include>
</includes>
</configuration>
</plugin>
<!-- 20-Mar-2019, tatu: use Moditect for JDK9+ module info inclusion -->
<plugin>
<groupId>org.moditect</groupId>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import org.junit.jupiter.api.Test;

@@ -8,6 +8,7 @@
import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

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

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

// [dataformat-xml#27]
@JacksonTestFailureExpected
@Test
public void testIssue27() throws Exception
{
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import java.util.Arrays;
import java.util.List;
@@ -12,6 +12,7 @@
import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

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

// [dataformat-xml#149]
@JacksonTestFailureExpected
@Test
public void testElementWrapper149() throws Exception
{
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import org.junit.jupiter.api.Test;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

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

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

private final XmlMapper MAPPER = newMapper();

@JacksonTestFailureExpected
@Test
public void testUntypedEnum() throws Exception
{
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
@@ -15,6 +15,7 @@
import com.fasterxml.jackson.databind.AnnotationIntrospector;
import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector;
import com.fasterxml.jackson.dataformat.xml.*;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

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

@@ -125,6 +126,7 @@ public void setUp() throws Exception
/**********************************************************************
*/

@JacksonTestFailureExpected
@Test
public void testSimpleKeyMap() throws Exception
{
@@ -135,6 +137,7 @@ public void testSimpleKeyMap() throws Exception
_jaxbMapper.writeValueAsString(bean));
}

@JacksonTestFailureExpected
@Test
public void testNeedEncodingKeyMap() throws Exception
{
@@ -147,6 +150,7 @@ public void testNeedEncodingKeyMap() throws Exception
xml);
}

@JacksonTestFailureExpected
@Test
public void testSimpleKeyMapSimpleAnnotation() throws Exception
{
@@ -158,6 +162,7 @@ public void testSimpleKeyMapSimpleAnnotation() throws Exception
_jaxbMapper.writeValueAsString(bean));
}

@JacksonTestFailureExpected
@Test
public void testNeedEncodingKeyMapSimpleAnnotation() throws Exception
{
@@ -169,6 +174,7 @@ public void testNeedEncodingKeyMapSimpleAnnotation() throws Exception
_jaxbMapper.writeValueAsString(bean));
}

@JacksonTestFailureExpected
@Test
public void testNeedEncodingKeyMap_nonJaxb() throws Exception
{
@@ -180,6 +186,7 @@ public void testNeedEncodingKeyMap_nonJaxb() throws Exception
_nonJaxbMapper.writeValueAsString(bean));
}

@JacksonTestFailureExpected
@Test
public void testNeedEncodingKeyMapSimpleAnnotation_nonJaxb() throws Exception
{
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import org.junit.jupiter.api.Test;

import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonRootName;

import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

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

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

private final XmlMapper MAPPER = newMapper();

@JacksonTestFailureExpected
@Test
public void testAttributeDeser128() throws Exception
{
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import org.junit.jupiter.api.Test;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -76,6 +77,7 @@ public ClassArrayWrapper() { }
*/
// Does not work since array wrapping is not explicitly forced (unlike with collection
// property of a bean
@JacksonTestFailureExpected
@Test
public void testAsClassArray() throws Exception
{
@@ -88,6 +90,7 @@ public void testAsClassArray() throws Exception

// Hmmh. Does not yet quite work either, since we do not properly force
// array context when writing...
@JacksonTestFailureExpected
@Test
public void testAsWrappedClassArray() throws Exception
{
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import java.io.IOException;
import java.util.List;
@@ -14,6 +14,7 @@
import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

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

// [dataformat-xml#426]
@JacksonTestFailureExpected
@Test
public void testPolymorphicList426() throws Exception
{
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import java.util.*;

@@ -10,6 +10,7 @@

import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.annotation.*;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

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

@@ -92,6 +93,7 @@ static class Base {

private final ObjectMapper XML_MAPPER = newMapper();

@JacksonTestFailureExpected
@Test
public void test_3itemsInXml_expect_3itemsInDeserializedObject() throws Exception {
String xmlString =
@@ -106,6 +108,7 @@ public void test_3itemsInXml_expect_3itemsInDeserializedObject() throws Exceptio
assertEquals(3, ((Wrapper)base).getItems().size());
}

@JacksonTestFailureExpected
@Test
public void test_2itemsInObject_expect_2itemsInObjectAfterRoundTripDeserializationToBaseClass() throws Exception {
Wrapper wrapper = new Wrapper();
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import java.util.List;

@@ -7,6 +7,7 @@
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

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

@@ -46,6 +47,7 @@ static class BindingInfo525 {
.defaultUseWrapper(false)
.build();

@JacksonTestFailureExpected
@Test
public void testTypeAfterOtherProperties() throws Exception {
String xml =
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import java.io.IOException;
import java.util.ArrayList;
@@ -9,6 +9,7 @@
import com.fasterxml.jackson.annotation.JsonRootName;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

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

@@ -52,6 +53,7 @@ public TypedListBean() {
* For [dataformat-xml#8] -- Will not use wrapping, if type is not statically known
* to be a Collection
*/
@JacksonTestFailureExpected
@Test
public void testListAsObject() throws IOException
{
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import java.util.ArrayList;
import java.util.List;
@@ -10,6 +10,7 @@

import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

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

@@ -34,6 +35,7 @@ static class Header {

private final ObjectMapper MAPPER = newMapper();

@JacksonTestFailureExpected
@Test
public void testXmlMarshallingAndUnmarshalling() throws Exception {
final Request request = new Request();
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import org.junit.jupiter.api.Test;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;
@@ -26,6 +27,7 @@ static class Root {
private final ObjectMapper MAPPER = newMapper();

// [dataformat-xml#247]
@JacksonTestFailureExpected
@Test
public void testRootNameValidation247() throws Exception
{
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import java.beans.ConstructorProperties;

@@ -11,6 +11,7 @@
import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -96,6 +97,7 @@ public Sample423(@JacksonXmlText String text,
private final XmlMapper MAPPER = newMapper();

// [dataformat-xml#306]
@JacksonTestFailureExpected
@Test
public void testIssue306WithCtor() throws Exception
{
@@ -113,6 +115,7 @@ public void testIssue306NoCtor() throws Exception
}

// [dataformat-xml#423]
@JacksonTestFailureExpected
@Test
public void testXmlTextViaCtor423() throws Exception
{
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fasterxml.jackson.dataformat.xml.failing;
package com.fasterxml.jackson.dataformat.xml.tofix;

import java.util.List;

@@ -11,6 +11,7 @@
import com.fasterxml.jackson.dataformat.xml.XmlTestUtil;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText;
import com.fasterxml.jackson.dataformat.xml.testutil.failure.JacksonTestFailureExpected;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -35,6 +36,7 @@ static class Text449 {
private final XmlMapper MAPPER = newMapper();

// [dataformat-xml#449]
@JacksonTestFailureExpected
@Test
public void testXmlText449ItemWithAttr() throws Exception
{
@@ -53,6 +55,7 @@ public void testXmlText449ItemWithAttr() throws Exception
}

// [dataformat-xml#449]
@JacksonTestFailureExpected
@Test
public void testXmlText449ItemWithList() throws Exception
{