|
21 | 21 |
|
22 | 22 | import com.fasterxml.jackson.databind.JsonNode;
|
23 | 23 | import com.fasterxml.jackson.databind.node.ArrayNode;
|
| 24 | +import com.fasterxml.jackson.databind.node.BigIntegerNode; |
| 25 | +import com.fasterxml.jackson.databind.node.IntNode; |
24 | 26 | import com.fasterxml.jackson.databind.node.JsonNodeFactory;
|
| 27 | +import com.fasterxml.jackson.databind.node.LongNode; |
25 | 28 | import com.fasterxml.jackson.databind.node.ObjectNode;
|
| 29 | +import com.fasterxml.jackson.databind.node.ShortNode; |
26 | 30 | import org.testng.annotations.BeforeClass;
|
27 | 31 | import org.testng.annotations.DataProvider;
|
28 | 32 | import org.testng.annotations.Test;
|
29 | 33 |
|
30 | 34 | import java.io.IOException;
|
| 35 | +import java.math.BigInteger; |
31 | 36 | import java.util.ArrayList;
|
32 | 37 | import java.util.Iterator;
|
33 | 38 | import java.util.List;
|
@@ -59,6 +64,19 @@ public Iterator<Object[]> getInputs()
|
59 | 64 | list.add(new Object[]{reference, node});
|
60 | 65 | }
|
61 | 66 |
|
| 67 | + list.add(new Object[]{new ShortNode((short) 1), new IntNode(1)}); |
| 68 | + list.add(new Object[]{new ShortNode((short) 1), new LongNode(1)}); |
| 69 | + list.add(new Object[]{new ShortNode((short) 1), new BigIntegerNode(BigInteger.ONE)}); |
| 70 | + list.add(new Object[]{new IntNode(1), new ShortNode((short) 1)}); |
| 71 | + list.add(new Object[]{new IntNode(1), new LongNode(1)}); |
| 72 | + list.add(new Object[]{new IntNode(1), new BigIntegerNode(BigInteger.ONE)}); |
| 73 | + list.add(new Object[]{new LongNode(1), new ShortNode((short) 1)}); |
| 74 | + list.add(new Object[]{new LongNode(1), new IntNode(1)}); |
| 75 | + list.add(new Object[]{new LongNode(1), new BigIntegerNode(BigInteger.ONE)}); |
| 76 | + list.add(new Object[]{new BigIntegerNode(BigInteger.ONE), new ShortNode((short) 1)}); |
| 77 | + list.add(new Object[]{new BigIntegerNode(BigInteger.ONE), new IntNode(1)}); |
| 78 | + list.add(new Object[]{new BigIntegerNode(BigInteger.ONE), new LongNode(1)}); |
| 79 | + |
62 | 80 | return list.iterator();
|
63 | 81 | }
|
64 | 82 |
|
|
0 commit comments