Search in sources :

Example 1 with ReadAccountListRequest

use of net.petafuel.styx.core.xs2a.standards.berlingroup.v1_2.http.ReadAccountListRequest in project styx by petafuel.

the class BerlinGroupRequestFactoryTest method testAISRequestFactory.

@Test
void testAISRequestFactory() {
    BerlinGroupRequestProvider berlinGroupRequestProvider = new BerlinGroupRequestProvider();
    AISRequestFactory requestFactory = new AISRequestFactory();
    XS2AFactoryInput factoryInput = new XS2AFactoryInput();
    AISRequest berlinGroupAccountList = requestFactory.create(berlinGroupRequestProvider.accountList(), factoryInput);
    Assertions.assertTrue(berlinGroupAccountList instanceof ReadAccountListRequest);
}
Also used : BerlinGroupRequestProvider(net.petafuel.styx.core.xs2a.standards.berlingroup.v1_2.BerlinGroupRequestProvider) AISRequest(net.petafuel.styx.core.xs2a.contracts.AISRequest) ReadAccountListRequest(net.petafuel.styx.core.xs2a.standards.berlingroup.v1_2.http.ReadAccountListRequest) Test(org.junit.jupiter.api.Test)

Aggregations

AISRequest (net.petafuel.styx.core.xs2a.contracts.AISRequest)1 BerlinGroupRequestProvider (net.petafuel.styx.core.xs2a.standards.berlingroup.v1_2.BerlinGroupRequestProvider)1 ReadAccountListRequest (net.petafuel.styx.core.xs2a.standards.berlingroup.v1_2.http.ReadAccountListRequest)1 Test (org.junit.jupiter.api.Test)1