Skip to content

Commit

Permalink
Check valid createoffer opt values with asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
ghubstan committed Mar 9, 2021
1 parent 2161c93 commit 389abf4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli/src/test/java/bisq/cli/opt/OptionParsersTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ public void testValidCreateOfferOpts() {
"--" + OPT_MKT_PRICE_MARGIN + "=" + "0.0",
"--" + OPT_SECURITY_DEPOSIT + "=" + "25.0"
};
CreateOfferOptionParser parser = new CreateOfferOptionParser(args).parse();
assertEquals("abc-payment-acct-id-123", parser.getPaymentAccountId());
assertEquals("BUY", parser.getDirection());
assertEquals("EUR", parser.getCurrencyCode());
assertEquals("0.125", parser.getAmount());
assertEquals("0.0", parser.getMktPriceMargin());
assertEquals("25.0", parser.getSecurityDeposit());
}

// CreatePaymentAcct opt parser tests
Expand Down

0 comments on commit 389abf4

Please sign in to comment.