Skip to content

Commit 84b6f91

Browse files
committed
...
1 parent 70bce80 commit 84b6f91

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

protobuf/src/test/java/tools/jackson/dataformat/protobuf/ReadComplexPojoTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
public class ReadComplexPojoTest extends ProtobufTestBase
1919
{
2020
@JsonPropertyOrder({ "b", "i", "l", "d" })
21-
static class PojoWithArrays {
21+
public static class PojoWithArrays {
2222
public boolean[] b;
2323

2424
public int[] i;
@@ -27,7 +27,7 @@ static class PojoWithArrays {
2727

2828
public double[] d;
2929

30-
protected PojoWithArrays() { }
30+
public PojoWithArrays() { }
3131

3232
public PojoWithArrays(boolean[] b,
3333
int[] i, long[] l, double[] d) {

protobuf/src/test/java/tools/jackson/dataformat/protobuf/SerDeserLongTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66

77
import org.junit.jupiter.api.Test;
88

9-
public class SerDeserLongTest {
9+
public class SerDeserLongTest extends ProtobufTestBase
10+
{
1011
@Test
1112
public void testWeirdLongSerDeser() throws Exception {
12-
ObjectMapper mapper = new ObjectMapper(new ProtobufFactory());
13+
ObjectMapper mapper = newObjectMapper();
1314
ProtobufSchema schema = ProtobufSchemaLoader.std.parse(BigNumPair.protobuf_str);
1415

1516
BigNumPair bnp = new BigNumPair();

protobuf/src/test/java/tools/jackson/dataformat/protobuf/WriteComplexPojoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
public class WriteComplexPojoTest extends ProtobufTestBase
1515
{
16-
private final ObjectMapper MAPPER = new ProtobufMapper();
16+
private final ObjectMapper MAPPER = newObjectMapper();
1717

1818
/*
1919
/**********************************************************

protobuf/src/test/java/tools/jackson/dataformat/protobuf/WritePrimitiveArrayTest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,46 +76,46 @@ public class WritePrimitiveArrayTest extends ProtobufTestBase
7676
+" repeated float values = 1 [packed=true];\n"
7777
+"}\n";
7878

79-
static class IntArray {
79+
public static class IntArray {
8080
public int[] values;
8181

82-
protected IntArray() { }
82+
public IntArray() { }
8383
public IntArray(int... v) {
8484
values = v;
8585
}
8686
}
8787

88-
static class LongArray {
88+
public static class LongArray {
8989
public long[] values;
9090

91-
protected LongArray() { }
91+
public LongArray() { }
9292
public LongArray(long... v) {
9393
values = v;
9494
}
9595
}
9696

97-
static class DoubleArray {
97+
public static class DoubleArray {
9898
public double[] values;
9999

100-
protected DoubleArray() { }
100+
public DoubleArray() { }
101101
public DoubleArray(double... v) {
102102
values = v;
103103
}
104104
}
105105

106-
static class FloatArray {
106+
public static class FloatArray {
107107
public float[] values;
108108

109-
protected FloatArray() { }
109+
public FloatArray() { }
110110
public FloatArray(float... v) {
111111
values = v;
112112
}
113113
}
114114

115-
static class StringArray {
115+
public static class StringArray {
116116
public String[] values;
117117

118-
protected StringArray() { }
118+
public StringArray() { }
119119
public StringArray(String... v) {
120120
values = v;
121121
}

0 commit comments

Comments
 (0)