File tree 3 files changed +5
-9
lines changed
src/test/java/tools/jackson/dataformat/xml
3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 6
6
import java .util .stream .Collectors ;
7
7
import java .util .stream .Stream ;
8
8
9
- import tools .jackson .dataformat .xml .XmlMapper ;
10
- import tools .jackson .dataformat .xml .XmlTestUtil ;
9
+ import tools .jackson .dataformat .xml .*;
11
10
12
11
import static org .junit .jupiter .api .Assertions .assertEquals ;
13
12
Original file line number Diff line number Diff line change 2
2
3
3
import org .junit .jupiter .api .Test ;
4
4
5
- import tools .jackson .dataformat .xml .XmlMapper ;
6
- import tools .jackson .dataformat .xml .XmlTestUtil ;
5
+ import tools .jackson .dataformat .xml .*;
7
6
import tools .jackson .dataformat .xml .annotation .JacksonXmlProperty ;
8
7
import tools .jackson .dataformat .xml .annotation .JacksonXmlText ;
9
8
import tools .jackson .dataformat .xml .testutil .failure .JacksonTestFailureExpected ;
10
9
11
- import static org .junit .jupiter .api .Assertions .assertEquals ;
10
+ import static org .junit .jupiter .api .Assertions .* ;
12
11
13
12
// [dataformat-xml#734]
14
13
public class XmlRecordDeser734Test extends XmlTestUtil
15
14
{
16
-
17
15
record Amount (@ JacksonXmlText String value ,
18
16
@ JacksonXmlProperty (isAttribute = true , localName = "Ccy" ) String currency ) {}
19
17
Original file line number Diff line number Diff line change 16
16
public class XmlWrapperRecord517Test
17
17
extends XmlTestUtil
18
18
{
19
-
20
19
public record Request (
21
20
@ JacksonXmlElementWrapper (localName = "messages" )
22
21
@ JacksonXmlProperty (localName = "message" )
23
22
List <Message > messages
24
23
) {
25
24
public Request {}
26
25
27
- Request () {this (null );}
26
+ protected Request () {this (null );}
28
27
}
29
28
30
29
public record Message (String text ) {
31
30
public Message {
32
31
}
33
32
34
- Message () {
33
+ protected Message () {
35
34
this (null );
36
35
}
37
36
}
You can’t perform that action at this time.
0 commit comments