Skip to content

Commit

Permalink
Introducing FakeConnection: mock connection object for emulating a re…
Browse files Browse the repository at this point in the history
…al server

The concept is still a bit vague, but basically it should be used for tests
when a real server is not available or it is not desired to have one started.
Eventually, a test will be able to preset some fake responses to emulate server
behaviour. Client-side nothing will change.

Signed-off-by: Daniele Ricci <[email protected]>
  • Loading branch information
daniele-athome committed Mar 24, 2019
1 parent c8f0152 commit 32848ca
Show file tree
Hide file tree
Showing 4 changed files with 699 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/src/androidTest/java/org/kontalk/MockServerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@
import org.junit.Before;

import android.accounts.AccountManager;
import android.content.ContentResolver;
import android.content.Context;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.support.test.InstrumentationRegistry;
import android.util.Base64;

import org.kontalk.authenticator.Authenticator;
import org.kontalk.service.msgcenter.SQLiteRosterStore;
Expand Down
Loading

0 comments on commit 32848ca

Please sign in to comment.