public virtual void test_resolve_receive() { BulletPayment test = BulletPayment.builder().payReceive(PayReceive.RECEIVE).value(GBP_P1000).date(AdjustableDate.of(DATE_2015_06_30)).build(); ResolvedBulletPayment expected = ResolvedBulletPayment.of(Payment.of(GBP_P1000, DATE_2015_06_30)); assertEquals(test.resolve(REF_DATA), expected); }
//------------------------------------------------------------------------- public virtual void test_of() { ResolvedBulletPayment test = ResolvedBulletPayment.of(PAYMENT1); assertEquals(test.Payment, PAYMENT1); assertEquals(test.Currency, PAYMENT1.Currency); }
//------------------------------------------------------------------------- public virtual void coverage() { ResolvedBulletPayment test = ResolvedBulletPayment.of(PAYMENT1); coverImmutableBean(test); ResolvedBulletPayment test2 = ResolvedBulletPayment.of(PAYMENT2); coverBeanEquals(test, test2); }
public virtual void test_serialization() { ResolvedBulletPayment test = ResolvedBulletPayment.of(PAYMENT1); assertSerialization(test); }