Skip to content

Commit

Permalink
UT
Browse files Browse the repository at this point in the history
  • Loading branch information
andriy-invoiced committed Jan 26, 2024
1 parent 584e9fc commit edc0b77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/com/invoiced/entity/SubscriptionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,19 @@ public void testRemoveAddons() {
Connection conn = new Connection("api_key", "http://localhost:8080");

try {
subscription = subscription.retrieve(595);
Subscription subscription = subscription.retrieve(595);
subscription.quantity = 2;

subscription.save();

assertTrue("Subscription should have been updated", subscription.addons.size().equals(1));
assertTrue("Subscription addon should not be deleted", subscription.addons.size() == 1);

subscription = subscription.retrieve(595);
subscription.addons = new SubscriptionAddon[] {};

subscription.save();

assertTrue("Subscription should have been updated", subscription.addons.equals.size(0));
assertTrue("Subscription addon should be deleted", subscription.addons.size() == 0);

} catch (Exception e) {
fail(e.getMessage());
Expand Down

0 comments on commit edc0b77

Please sign in to comment.