-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SyncSenderHandlerTest coverage not reflecting
- Loading branch information
Showing
3 changed files
with
30 additions
and
24 deletions.
There are no files selected for viewing
20 changes: 0 additions & 20 deletions
20
p2p-sync/src/test/java/org/smartregister/p2p/shadows/ShadowSyncSenderHandler.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
p2p-sync/src/test/java/org/smartregister/p2p/sync/handler/TestSyncSenderHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.smartregister.p2p.sync.handler; | ||
|
||
import android.support.annotation.NonNull; | ||
import android.support.annotation.Nullable; | ||
|
||
import org.smartregister.p2p.contract.P2pModeSelectContract; | ||
import org.smartregister.p2p.model.DataType; | ||
import org.smartregister.p2p.model.P2pReceivedHistory; | ||
|
||
import java.util.List; | ||
import java.util.TreeSet; | ||
|
||
/** | ||
* Created by Ephraim Kigamba - [email protected] on 2019-06-12 | ||
*/ | ||
|
||
public class TestSyncSenderHandler extends SyncSenderHandler{ | ||
|
||
public TestSyncSenderHandler(@NonNull P2pModeSelectContract.SenderPresenter presenter, @NonNull TreeSet<DataType> dataSyncOrder, @Nullable List<P2pReceivedHistory> receivedHistory) { | ||
super(presenter, dataSyncOrder, receivedHistory); | ||
} | ||
|
||
@Override | ||
public void startNewThread(@NonNull Runnable runnable) { | ||
runnable.run(); | ||
} | ||
} |