[bisq-network/bisq] Fix required opt validation bugs in CLI (#5274)
sqrrm
notifications at github.com
Tue Mar 9 12:05:39 CET 2021
@sqrrm commented on this pull request.
> + new CreateOfferOptionParser(args).parse());
+ assertEquals("no direction (buy|sell) specified", exception.getMessage());
+ }
+
+ @Test
+ public void testValidCreateOfferOpts() {
+ String[] args = new String[]{
+ PASSWORD_OPT,
+ createoffer.name(),
+ "--" + OPT_PAYMENT_ACCOUNT + "=" + "abc-payment-acct-id-123",
+ "--" + OPT_DIRECTION + "=" + "BUY",
+ "--" + OPT_CURRENCY_CODE + "=" + "EUR",
+ "--" + OPT_AMOUNT + "=" + "0.125",
+ "--" + OPT_MKT_PRICE_MARGIN + "=" + "0.0",
+ "--" + OPT_SECURITY_DEPOSIT + "=" + "25.0"
+ };
Is there an assert missing here?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5274#pullrequestreview-607279429
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20210309/2250ac87/attachment.htm>
More information about the bisq-github
mailing list