Operation { protected static String fromXdrAmount(long value) { BigDecimal amount = new BigDecimal(value).divide(Operation.ONE); return amount.toPlainString(); } Operation(); kin.base.xdr.Operation toXdr(); String toXdrBase64(); static Operation fromXdr(kin.base.xdr.Operation xdr); KeyPair getSourceAccount();  }
@Test public void testFromXdrAmount() { assertEquals("0", Operation.fromXdrAmount(0L)); assertEquals("0.00001", Operation.fromXdrAmount(1L)); assertEquals("100", Operation.fromXdrAmount(10000000L)); assertEquals("112.34567", Operation.fromXdrAmount(11234567L)); assertEquals("7299128430.07381", Operation.fromXdrAmount(729912843007381L)); assertEquals("10140167114468.00155", Operation.fromXdrAmount(1014016711446800155L)); assertEquals("92233720368547.75807", Operation.fromXdrAmount(9223372036854775807L)); }