/** * Factory method for getting an instance of JSON numeric value * that expresses given unlimited range integer value */ @Override public ValueNode numberNode(BigInteger v) { if (v == null) { return nullNode(); } return BigIntegerNode.valueOf(v); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given unlimited range integer value */ @Override public NumericNode numberNode(BigInteger v) { return BigIntegerNode.valueOf(v); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given unlimited range integer value */ @Override public NumericNode numberNode(BigInteger v) { return BigIntegerNode.valueOf(v); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given unlimited range integer value */ public NumericNode numberNode(BigInteger v) { return BigIntegerNode.valueOf(v); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given unlimited range integer value */ @Override public NumericNode numberNode(BigInteger v) { return BigIntegerNode.valueOf(v); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given unlimited range integer value */ public NumericNode numberNode(BigInteger v) { return BigIntegerNode.valueOf(v); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given unlimited range integer value */ @Override public ValueNode numberNode(BigInteger v) { if (v == null) { return nullNode(); } return BigIntegerNode.valueOf(v); }
@Test public void whenReprIsBigInteger() throws Exception { // given allowingObjectSpecHas(EncodableFacet.class, mockEncodableFacet); allowingObjectSpecCorrespondingClassAndSpecIdIs(BigInteger.class); final BigInteger value = BigInteger.valueOf(123); representation = new JsonRepresentation(BigIntegerNode.valueOf(value)); context.checking(new Expectations() { { oneOf(mockAdapterManager).adapterFor(value); will(returnValue(mockObjectAdapter)); } }); // when final ObjectAdapter adapter = JsonValueEncoder.asAdapter(mockObjectSpec, representation, null); // then assertSame(mockObjectAdapter, adapter); }