Assert.assertEquals(transaction.getRecurring(), new Boolean(false)); Assert.assertEquals(transaction.getTest(), new Boolean(true)); Assert.assertEquals(transaction.getVoidable(), new Boolean(true)); Assert.assertEquals(transaction.getRefundable(), new Boolean(true)); Assert.assertEquals(transaction.getIpAddress(), "1.2.3.4");
Assert.assertEquals(transaction.getRecurring(), new Boolean(false)); Assert.assertEquals(transaction.getTest(), new Boolean(true)); Assert.assertEquals(transaction.getVoidable(), new Boolean(true)); Assert.assertEquals(transaction.getRefundable(), new Boolean(true)); Assert.assertEquals(transaction.getIpAddress(), "1.2.3.4");
Assert.assertFalse(errors.getTransaction().getRecurring()); Assert.assertTrue(errors.getTransaction().getTest()); Assert.assertFalse(errors.getTransaction().getVoidable()); Assert.assertFalse(errors.getTransaction().getRefundable()); Assert.assertEquals(errors.getTransaction().getTransactionError().getErrorCode(), "fraud_ip_address");
Assert.assertFalse(errors.getTransaction().getRecurring()); Assert.assertTrue(errors.getTransaction().getTest()); Assert.assertFalse(errors.getTransaction().getVoidable()); Assert.assertFalse(errors.getTransaction().getRefundable()); Assert.assertEquals(errors.getTransaction().getTransactionError().getErrorCode(), "fraud_ip_address");