-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3214 from k9mail/simplify_robolectric_tests
Update Robolectric to 3.7.1 and simplify test annotations
- Loading branch information
Showing
47 changed files
with
116 additions
and
169 deletions.
There are no files selected for viewing
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
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
20 changes: 0 additions & 20 deletions
20
k9mail/src/test/java/com/fsck/k9/K9RobolectricTestRunner.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
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
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
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
|
||
import com.fsck.k9.Account; | ||
import com.fsck.k9.K9; | ||
import com.fsck.k9.K9RobolectricTestRunner; | ||
import com.fsck.k9.activity.compose.RecipientMvpView.CryptoSpecialModeDisplayType; | ||
import com.fsck.k9.activity.compose.RecipientMvpView.CryptoStatusDisplayType; | ||
import com.fsck.k9.activity.compose.RecipientPresenter.CryptoMode; | ||
|
@@ -34,6 +33,7 @@ | |
import org.openintents.openpgp.util.OpenPgpServiceConnection; | ||
import org.openintents.openpgp.util.ShadowOpenPgpAsyncTask; | ||
import org.robolectric.Robolectric; | ||
import org.robolectric.RobolectricTestRunner; | ||
import org.robolectric.annotation.Config; | ||
import org.robolectric.shadows.ShadowApplication; | ||
|
||
|
@@ -49,8 +49,8 @@ | |
|
||
|
||
@SuppressWarnings("ConstantConditions") | ||
@RunWith(K9RobolectricTestRunner.class) | ||
@Config(shadows = {ShadowOpenPgpAsyncTask.class}) | ||
@RunWith(RobolectricTestRunner.class) | ||
@Config(shadows = { ShadowOpenPgpAsyncTask.class }) | ||
public class RecipientPresenterTest { | ||
private static final ReplyToAddresses TO_ADDRESSES = new ReplyToAddresses(Address.parse("[email protected]")); | ||
private static final List<Address> ALL_TO_ADDRESSES = Arrays.asList(Address.parse("[email protected]")); | ||
|
6 changes: 3 additions & 3 deletions
6
k9mail/src/test/java/com/fsck/k9/activity/misc/ContactPictureLoaderTest.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
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
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
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
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
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
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
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
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
Oops, something went wrong.