diff --git a/src/test/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddressesTest.java b/src/test/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddressesTest.java new file mode 100644 index 00000000..3982977a --- /dev/null +++ b/src/test/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddressesTest.java @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2019 BitPay. + * All rights reserved. + */ + +package com.bitpay.sdk.model.invoice; + +import java.time.ZonedDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +public class InvoiceRefundAddressesTest { + + @Test + public void it_should_manipulate_type() { + String expected = "exampleType"; + InvoiceRefundAddresses testedClass = this.getTestedClass(); + + testedClass.setType(expected); + Assertions.assertSame(expected, testedClass.getType()); + } + + @Test + public void it_should_manipulate_date() { + ZonedDateTime expected = ZonedDateTime.now(); + InvoiceRefundAddresses testedClass = this.getTestedClass(); + + testedClass.setDate(expected); + Assertions.assertSame(expected, testedClass.getDate()); + } + + @Test + public void it_should_manipulate_tag() { + Integer expected = 123; + InvoiceRefundAddresses testedClass = this.getTestedClass(); + + testedClass.setTag(expected); + Assertions.assertSame(expected, testedClass.getTag()); + } + + @Test + public void it_should_manipulate_email() { + String expected = "example@email.com"; + InvoiceRefundAddresses testedClass = this.getTestedClass(); + + testedClass.setEmail(expected); + Assertions.assertSame(expected, testedClass.getEmail()); + } + + private InvoiceRefundAddresses getTestedClass() { + return new InvoiceRefundAddresses(); + } +}