-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0f60b6
commit 515daf7
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
src/test/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddressesTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = "[email protected]"; | ||
InvoiceRefundAddresses testedClass = this.getTestedClass(); | ||
|
||
testedClass.setEmail(expected); | ||
Assertions.assertSame(expected, testedClass.getEmail()); | ||
} | ||
|
||
private InvoiceRefundAddresses getTestedClass() { | ||
return new InvoiceRefundAddresses(); | ||
} | ||
} |