1414import static org .junit .jupiter .api .Assertions .assertThrows ;
1515import static org .junit .jupiter .api .Assertions .assertTrue ;
1616
17- public class DifferentDeserializationPropertyNameTest extends XmlTestUtil {
18-
17+ public class DifferentDeserializationPropertyNameTest extends XmlTestUtil
18+ {
1919 static class TestBean {
20-
2120 @ JacksonXmlProperty (localName = "wrong" )
2221 String wrong ;
2322
2423 @ JacksonXmlText
2524 String name ;
26-
27-
2825 }
2926
3027 /*
@@ -36,7 +33,8 @@ static class TestBean {
3633 @ Test
3734 public void testWithExplicitProperty () {
3835 final XmlMapper mapper = XmlMapper .builder ()
39- .annotationIntrospector (new JacksonXmlAnnotationIntrospector (false , new JacksonXmlAnnotationIntrospectorConfig (false , new PropertyName ("name" ))))
36+ .annotationIntrospector (new JacksonXmlAnnotationIntrospector (false ,
37+ new JacksonXmlAnnotationIntrospectorConfig (false , new PropertyName ("name" ))))
4038 .build ();
4139
4240 String xmlInput = "<testBean>ABC123</testBean>" ;
@@ -49,7 +47,8 @@ public void testWithExplicitProperty() {
4947 @ Test
5048 public void testWithInferName () {
5149 final XmlMapper mapper = XmlMapper .builder ()
52- .annotationIntrospector (new JacksonXmlAnnotationIntrospector (false , new JacksonXmlAnnotationIntrospectorConfig (true , null )))
50+ .annotationIntrospector (new JacksonXmlAnnotationIntrospector (false ,
51+ new JacksonXmlAnnotationIntrospectorConfig (true , null )))
5352 .build ();
5453
5554 String xmlInput = "<testBean>DEF</testBean>" ;
@@ -62,7 +61,8 @@ public void testWithInferName() {
6261 @ Test
6362 public void testWithDuplicateExplicitProperty () {
6463 final XmlMapper mapper = XmlMapper .builder ()
65- .annotationIntrospector (new JacksonXmlAnnotationIntrospector (false , new JacksonXmlAnnotationIntrospectorConfig (false , new PropertyName ("wrong" ))))
64+ .annotationIntrospector (new JacksonXmlAnnotationIntrospector (false ,
65+ new JacksonXmlAnnotationIntrospectorConfig (false , new PropertyName ("wrong" ))))
6666 .build ();
6767
6868 String xmlInput = "<testBean>DEF</testBean>" ;
@@ -71,5 +71,4 @@ public void testWithDuplicateExplicitProperty() {
7171
7272 assertTrue (result .getMessage ().contains ("Multiple fields representing property \" wrong\" " ));
7373 }
74-
7574}
0 commit comments