use of org.infobip.mobile.messaging.api.tools.DebugServer 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);
}
Aggregations