File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed
cbor/src/test/java/com/fasterxml/jackson/dataformat/cbor/seq
protobuf/src/test/java/com/fasterxml/jackson/dataformat/protobuf
smile/src/test/java/com/fasterxml/jackson/dataformat/smile/seq Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 9
9
10
10
import com .fasterxml .jackson .dataformat .cbor .CBORTestBase ;
11
11
12
+ import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
13
+
12
14
public class SequenceWriterTest extends CBORTestBase
13
15
{
14
16
private final ObjectMapper MAPPER = cborMapper ();
15
17
18
+ @ JsonPropertyOrder ({ "id" , "value" })
16
19
static class IdValue {
17
20
public int id , value ;
18
21
Original file line number Diff line number Diff line change 10
10
11
11
import junit .framework .TestCase ;
12
12
13
+ import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
14
+
13
15
public abstract class ProtobufTestBase extends TestCase
14
16
{
15
17
/*
@@ -149,6 +151,7 @@ static class SearchRequest {
149
151
/**********************************************************
150
152
*/
151
153
154
+ @ JsonPropertyOrder ({ "x" , "y" })
152
155
static class Point {
153
156
public int x ;
154
157
public int y ;
@@ -174,6 +177,7 @@ public boolean equals(Object o) {
174
177
}
175
178
}
176
179
180
+ @ JsonPropertyOrder ({ "x" , "y" , "z" })
177
181
static class Point3 {
178
182
public int x , y , z ;
179
183
@@ -277,6 +281,7 @@ public boolean equals(Object o) {
277
281
}
278
282
}
279
283
284
+ @ JsonPropertyOrder ({ "topLeft" , "bottomRight" })
280
285
static class Box {
281
286
public Point topLeft , bottomRight ;
282
287
@@ -296,6 +301,7 @@ public String toString() {
296
301
}
297
302
}
298
303
304
+ @ JsonPropertyOrder ({ "first" , "last" })
299
305
static class Name {
300
306
public String first , last ;
301
307
Original file line number Diff line number Diff line change 5
5
import com .fasterxml .jackson .databind .*;
6
6
import com .fasterxml .jackson .dataformat .protobuf .schema .*;
7
7
8
+ import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
9
+
8
10
public class WriteBinaryTest extends ProtobufTestBase
9
11
{
10
12
final protected static String PROTOC_BINARY =
@@ -15,6 +17,7 @@ public class WriteBinaryTest extends ProtobufTestBase
15
17
+"}\n "
16
18
;
17
19
20
+ @ JsonPropertyOrder ({ "id" , "trailer" , "data" })
18
21
static class Binary {
19
22
public int id , trailer ;
20
23
public byte [] data ;
Original file line number Diff line number Diff line change 9
9
10
10
import com .fasterxml .jackson .dataformat .smile .BaseTestForSmile ;
11
11
12
+ import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
13
+
12
14
public class SequenceWriterTest extends BaseTestForSmile
13
15
{
14
16
private final ObjectMapper MAPPER = smileMapper ();
15
17
18
+ @ JsonPropertyOrder ({ "id" , "value" })
16
19
static class IdValue {
17
20
public int id , value ;
18
21
You can’t perform that action at this time.
0 commit comments