Skip to content

Commit

Permalink
[DE-827] Fix test env site assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-nedza committed May 20, 2024
1 parent 8ff17f7 commit a3b63c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void shouldReadCreditNotes() throws IOException, ApiException, InterruptedExcept

assertThat(creditNote.getApplications())
.hasSize(1)
.usingRecursiveFieldByFieldElementComparatorIgnoringFields("uid", "transactionTime")
.usingRecursiveFieldByFieldElementComparatorIgnoringFields("uid", "transactionTime", "additionalProperties")
.containsExactly(new CreditNoteApplication.Builder()
.invoiceUid(paidInvoice.getUid())
.memo("Special refund")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ void shouldReadSite() throws Exception {

// then
assertThat(site.getId()).isEqualTo(SITE_ID);
assertThat(site.getName()).isEqualTo("Java SDK Env");
assertThat(site.getName()).isEqualTo("Java SDK");
assertThat(site.getSubdomain()).isEqualTo("java-sdk");
assertThat(site.getCurrency()).isEqualTo("USD");
assertThat(site.getSellerId()).isEqualTo(722159);
assertThat(site.getSellerId()).isEqualTo(56887);
assertThat(site.getNonPrimaryCurrencies()).containsExactlyInAnyOrder("EUR");
assertThat(site.getRelationshipInvoicingEnabled()).isTrue();
assertThat(site.getCustomerHierarchyEnabled()).isFalse();
Expand All @@ -47,7 +47,7 @@ void shouldReadSite() throws Exception {
assertThat(organizationAddress.getState()).isEqualTo("TX");
assertThat(organizationAddress.getZip()).isEqualTo("78015");
assertThat(organizationAddress.getCountry()).isEqualTo("US");
assertThat(organizationAddress.getName()).isEqualTo("Developer Experience");
assertThat(organizationAddress.getName()).isEqualTo("Maxio Developer Experience");
assertThat(organizationAddress.getPhone()).isEqualTo("555 111 222");

TaxConfiguration taxConfiguration = site.getTaxConfiguration();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class TestFixtures {
public static final Integer SITE_ID = getSiteId();

public static final InvoiceSeller INVOICE_SELLER = new InvoiceSeller.Builder()
.name("Root Testing RUIC")
.name("Maxio Developer Experience")
.address(new InvoiceAddress.Builder()
.street("Asdf Street")
.line2("123/444")
Expand Down

0 comments on commit a3b63c9

Please sign in to comment.