Search in sources :

Example 1 with JacksonObjectMapper

use of kong.unirest.JacksonObjectMapper in project openbanking-aspsp by OpenBankingToolkit.

the class TransactionsApiControllerIT method setUp.

@Before
public void setUp() {
    Unirest.config().setObjectMapper(new JacksonObjectMapper()).verifySsl(false);
    tpp = new Tpp();
    tpp.setClientId(CLIENT_ID);
    tpp.setAuthorisationNumber(AUTHORISATION_NUMBER);
}
Also used : JacksonObjectMapper(kong.unirest.JacksonObjectMapper) Tpp(com.forgerock.openbanking.model.Tpp) Before(org.junit.Before)

Example 2 with JacksonObjectMapper

use of kong.unirest.JacksonObjectMapper in project openbanking-aspsp by OpenBankingToolkit.

the class TransactionsApiControllerIT method setUp.

@Before
public void setUp() {
    Unirest.config().setObjectMapper(new JacksonObjectMapper()).verifySsl(false);
    tpp = new Tpp();
    tpp.setClientId(CLIENT_ID);
    tpp.setAuthorisationNumber(AUTHORISATION_NUMBER);
}
Also used : JacksonObjectMapper(kong.unirest.JacksonObjectMapper) Tpp(com.forgerock.openbanking.model.Tpp) Before(org.junit.Before)

Example 3 with JacksonObjectMapper

use of kong.unirest.JacksonObjectMapper in project openbanking-aspsp by OpenBankingToolkit.

the class InfoApiControllerIT method setUp.

@Before
public void setUp() {
    ObjectMapper objectMapper = new ObjectMapper();
    objectMapper.registerModule(new JodaModule());
    JacksonObjectMapper jacksonObjectMapper = new JacksonObjectMapper(objectMapper);
    Unirest.config().setObjectMapper(jacksonObjectMapper).verifySsl(false);
    tpp = new Tpp();
    tpp.setClientId(CLIENT_ID);
    tpp.setAuthorisationNumber(AUTHORISATION_NUMBER);
}
Also used : JacksonObjectMapper(kong.unirest.JacksonObjectMapper) Tpp(com.forgerock.openbanking.model.Tpp) JodaModule(com.fasterxml.jackson.datatype.joda.JodaModule) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) JacksonObjectMapper(kong.unirest.JacksonObjectMapper) Before(org.junit.Before)

Example 4 with JacksonObjectMapper

use of kong.unirest.JacksonObjectMapper in project openbanking-aspsp by OpenBankingToolkit.

the class AccountsApiControllerIT method setUp.

@Before
public void setUp() {
    Unirest.config().setObjectMapper(new JacksonObjectMapper()).verifySsl(false);
    tpp = new Tpp();
    tpp.setClientId(CLIENT_ID);
    tpp.setAuthorisationNumber(AUTHORISATION_NUMBER);
}
Also used : JacksonObjectMapper(kong.unirest.JacksonObjectMapper) Tpp(com.forgerock.openbanking.model.Tpp) Before(org.junit.Before)

Example 5 with JacksonObjectMapper

use of kong.unirest.JacksonObjectMapper in project openbanking-aspsp by OpenBankingToolkit.

the class CallbackUrlsApiControllerIT method setUp.

@Before
public void setUp() {
    tpp = new Tpp();
    tpp.setId(UUID.randomUUID().toString());
    given(tppRepository.findByClientId(any())).willReturn(tpp);
    clientId = UUID.randomUUID().toString();
    Unirest.config().setObjectMapper(new JacksonObjectMapper(objectMapper)).verifySsl(false);
}
Also used : Tpp(com.forgerock.openbanking.model.Tpp) JacksonObjectMapper(kong.unirest.JacksonObjectMapper) Before(org.junit.Before)

Aggregations

JacksonObjectMapper (kong.unirest.JacksonObjectMapper)12 Before (org.junit.Before)12 Tpp (com.forgerock.openbanking.model.Tpp)11 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 JodaModule (com.fasterxml.jackson.datatype.joda.JodaModule)2