Skip to content

Commit

Permalink
SP-737 Type Review: Java
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarzybok-sumoheavy committed Jan 23, 2024
1 parent a0f60b6 commit 515daf7
Showing 1 changed file with 53 additions and 0 deletions.
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();
}
}

0 comments on commit 515daf7

Please sign in to comment.