Search in sources :

Example 6 with OfferToCreate

use of io.bisq.api.model.OfferToCreate in project bisq-api by mrosseel.

the class OfferResourceIT method createOffer_incompatiblePaymentAccount_returns423status.

@InSequence(3)
@Test
public void createOffer_incompatiblePaymentAccount_returns423status() {
    String otherTradeCurrency = "EUR".equals(tradeCurrency) ? "PLN" : "EUR";
    final OfferToCreate offer = getOfferToCreateFixedBuy(otherTradeCurrency, alicePaymentAccount.id);
    createOffer_template(offer, 423);
}
Also used : OfferToCreate(io.bisq.api.model.OfferToCreate) InSequence(org.jboss.arquillian.junit.InSequence) Test(org.junit.Test)

Example 7 with OfferToCreate

use of io.bisq.api.model.OfferToCreate in project bisq-api by mrosseel.

the class OfferResourceIT method createOffer_noArbitratorAccepted_returns424status.

@InSequence(1)
@Test
public void createOffer_noArbitratorAccepted_returns424status() {
    final OfferToCreate offer = getOfferToCreateFixedBuy(tradeCurrency, alicePaymentAccount.id);
    createOffer_template(offer, 424);
}
Also used : OfferToCreate(io.bisq.api.model.OfferToCreate) InSequence(org.jboss.arquillian.junit.InSequence) Test(org.junit.Test)

Example 8 with OfferToCreate

use of io.bisq.api.model.OfferToCreate in project bisq-api by mrosseel.

the class OfferResourceIT method createOffer_noPaymentAccount_returns425status.

@InSequence(3)
@Test
public void createOffer_noPaymentAccount_returns425status() {
    final OfferToCreate offer = getOfferToCreateFixedBuy(tradeCurrency, alicePaymentAccount.id + alicePaymentAccount.id);
    createOffer_template(offer, 425);
}
Also used : OfferToCreate(io.bisq.api.model.OfferToCreate) InSequence(org.jboss.arquillian.junit.InSequence) Test(org.junit.Test)

Aggregations

OfferToCreate (io.bisq.api.model.OfferToCreate)8 InSequence (org.jboss.arquillian.junit.InSequence)7 Test (org.junit.Test)7 OfferDetail (io.bisq.api.model.OfferDetail)1 BigDecimal (java.math.BigDecimal)1 NotNull (org.jetbrains.annotations.NotNull)1 JSONObject (org.json.simple.JSONObject)1