Initialize HttpJsonRequest in SyncTests SetUp method.

This commit is contained in:
Daniel Schaal 2015-10-03 09:16:28 +02:00
parent 03d13f4418
commit 2228e6455e

View file

@ -20,6 +20,7 @@ import java.net.URL;
import de.luhmer.owncloudnewsreader.NewsReaderListActivity; import de.luhmer.owncloudnewsreader.NewsReaderListActivity;
import de.luhmer.owncloudnewsreader.reader.FeedItemTags; import de.luhmer.owncloudnewsreader.reader.FeedItemTags;
import de.luhmer.owncloudnewsreader.reader.HttpJsonRequest;
import de.luhmer.owncloudnewsreader.reader.owncloud.API; import de.luhmer.owncloudnewsreader.reader.owncloud.API;
import de.luhmer.owncloudnewsreader.reader.owncloud.OwnCloudReaderMethods; import de.luhmer.owncloudnewsreader.reader.owncloud.OwnCloudReaderMethods;
import de.luhmer.owncloudnewsreader.reader.owncloud.apiv2.APIv2; import de.luhmer.owncloudnewsreader.reader.owncloud.apiv2.APIv2;
@ -52,6 +53,8 @@ public class SyncTests extends ActivityInstrumentationTestCase2<NewsReaderListAc
server.start(); server.start();
// Ask the server for its URL. You'll need this to make HTTP requests. // Ask the server for its URL. You'll need this to make HTTP requests.
baseUrl = server.url("/"); baseUrl = server.url("/");
HttpJsonRequest.init(mActivity);
HttpJsonRequest.getInstance().setCredentials("test", "test", baseUrl.toString());
} }
@Test @Test