Search in sources :

Example 1 with Generator

use of org.infobip.mobile.messaging.api.support.Generator in project mobile-messaging-sdk-android by infobip.

the class MobileApiGeoTest method setUp.

@Before
public void setUp() throws Exception {
    debugServer = new DebugServer();
    debugServer.start();
    Properties properties = new Properties();
    properties.put("api.key", "my_API_key");
    Generator generator = new Generator.Builder().withBaseUrl("http://127.0.0.1:" + debugServer.getListeningPort() + "/").withProperties(properties).build();
    mobileApiGeo = generator.create(MobileApiGeo.class);
}
Also used : DebugServer(org.infobip.mobile.messaging.api.tools.DebugServer) MobileApiGeo(org.infobip.mobile.messaging.api.geo.MobileApiGeo) Properties(java.util.Properties) Generator(org.infobip.mobile.messaging.api.support.Generator) Before(org.junit.Before)

Example 2 with Generator

use of org.infobip.mobile.messaging.api.support.Generator in project mobile-messaging-sdk-android by infobip.

the class MobileApiRegistrationTest method setUp.

@Before
public void setUp() throws Exception {
    debugServer = new DebugServer();
    debugServer.start();
    Properties properties = new Properties();
    properties.put("api.key", "my_API_key");
    Generator generator = new Generator.Builder().withBaseUrl("http://127.0.0.1:" + debugServer.getListeningPort() + "/").withProperties(properties).build();
    mobileApiRegistration = generator.create(MobileApiRegistration.class);
}
Also used : DebugServer(org.infobip.mobile.messaging.api.tools.DebugServer) Properties(java.util.Properties) Generator(org.infobip.mobile.messaging.api.support.Generator) MobileApiRegistration(org.infobip.mobile.messaging.api.registration.MobileApiRegistration) Before(org.junit.Before)

Example 3 with Generator

use of org.infobip.mobile.messaging.api.support.Generator in project mobile-messaging-sdk-android by infobip.

the class MobileApiVersionTest method setUp.

@Before
public void setUp() throws Exception {
    debugServer = new DebugServer();
    debugServer.start();
    Properties properties = new Properties();
    properties.put("api.key", "my_API_key");
    Generator generator = new Generator.Builder().withBaseUrl("http://127.0.0.1:" + debugServer.getListeningPort() + "/").withProperties(properties).build();
    mobileApiVersion = generator.create(MobileApiVersion.class);
}
Also used : MobileApiVersion(org.infobip.mobile.messaging.api.version.MobileApiVersion) DebugServer(org.infobip.mobile.messaging.api.tools.DebugServer) Properties(java.util.Properties) Generator(org.infobip.mobile.messaging.api.support.Generator) Before(org.junit.Before)

Example 4 with Generator

use of org.infobip.mobile.messaging.api.support.Generator in project mobile-messaging-sdk-android by infobip.

the class MobileApiDataTest method setUp.

@Before
public void setUp() throws Exception {
    debugServer = new DebugServer();
    debugServer.start();
    Properties properties = new Properties();
    properties.put("api.key", "my_API_key");
    Generator generator = new Generator.Builder().withBaseUrl("http://127.0.0.1:" + debugServer.getListeningPort() + "/").withProperties(properties).build();
    mobileApiData = generator.create(MobileApiData.class);
}
Also used : DebugServer(org.infobip.mobile.messaging.api.tools.DebugServer) Properties(java.util.Properties) MobileApiData(org.infobip.mobile.messaging.api.data.MobileApiData) Generator(org.infobip.mobile.messaging.api.support.Generator) Before(org.junit.Before)

Example 5 with Generator

use of org.infobip.mobile.messaging.api.support.Generator in project mobile-messaging-sdk-android by infobip.

the class MobileApiMessagesTest method setUp.

@Before
public void setUp() throws Exception {
    debugServer = new DebugServer();
    debugServer.start();
    Properties properties = new Properties();
    properties.put("api.key", "my_API_key");
    Generator generator = new Generator.Builder().withBaseUrl("http://127.0.0.1:" + debugServer.getListeningPort() + "/").withProperties(properties).build();
    mobileApiMessages = generator.create(MobileApiMessages.class);
}
Also used : DebugServer(org.infobip.mobile.messaging.api.tools.DebugServer) MobileApiMessages(org.infobip.mobile.messaging.api.messages.MobileApiMessages) Properties(java.util.Properties) Generator(org.infobip.mobile.messaging.api.support.Generator) Before(org.junit.Before)

Aggregations

Properties (java.util.Properties)5 Generator (org.infobip.mobile.messaging.api.support.Generator)5 DebugServer (org.infobip.mobile.messaging.api.tools.DebugServer)5 Before (org.junit.Before)5 MobileApiData (org.infobip.mobile.messaging.api.data.MobileApiData)1 MobileApiGeo (org.infobip.mobile.messaging.api.geo.MobileApiGeo)1 MobileApiMessages (org.infobip.mobile.messaging.api.messages.MobileApiMessages)1 MobileApiRegistration (org.infobip.mobile.messaging.api.registration.MobileApiRegistration)1 MobileApiVersion (org.infobip.mobile.messaging.api.version.MobileApiVersion)1