|
27 | 27 | import static com.google.firebase.appdistribution.impl.ErrorMessages.NETWORK_ERROR;
|
28 | 28 | import static com.google.firebase.appdistribution.impl.ErrorMessages.RELEASE_NOT_FOUND_ERROR;
|
29 | 29 | import static com.google.firebase.appdistribution.impl.ErrorMessages.UPDATE_CANCELED;
|
30 |
| -import static com.google.firebase.appdistribution.impl.FeedbackActivity.INFO_TEXT_EXTRA_KEY; |
31 |
| -import static com.google.firebase.appdistribution.impl.FeedbackActivity.RELEASE_NAME_EXTRA_KEY; |
32 |
| -import static com.google.firebase.appdistribution.impl.FeedbackActivity.SCREENSHOT_URI_EXTRA_KEY; |
| 30 | +import static com.google.firebase.appdistribution.impl.FeedbackActivity.INFO_TEXT_KEY; |
| 31 | +import static com.google.firebase.appdistribution.impl.FeedbackActivity.RELEASE_NAME_KEY; |
| 32 | +import static com.google.firebase.appdistribution.impl.FeedbackActivity.SCREENSHOT_URI_KEY; |
33 | 33 | import static com.google.firebase.appdistribution.impl.TestUtils.assertTaskFailure;
|
34 | 34 | import static java.util.stream.Collectors.toList;
|
35 | 35 | import static org.junit.Assert.assertEquals;
|
@@ -660,10 +660,10 @@ public void startFeedback_signsInTesterAndStartsActivity() throws InterruptedExc
|
660 | 660 | Intent expectedIntent = new Intent(activity, FeedbackActivity.class);
|
661 | 661 | Intent actualIntent = shadowOf(RuntimeEnvironment.getApplication()).getNextStartedActivity();
|
662 | 662 | assertEquals(expectedIntent.getComponent(), actualIntent.getComponent());
|
663 |
| - assertThat(actualIntent.getStringExtra(RELEASE_NAME_EXTRA_KEY)).isEqualTo("release-name"); |
664 |
| - assertThat(actualIntent.getStringExtra(SCREENSHOT_URI_EXTRA_KEY)) |
| 663 | + assertThat(actualIntent.getStringExtra(RELEASE_NAME_KEY)).isEqualTo("release-name"); |
| 664 | + assertThat(actualIntent.getStringExtra(SCREENSHOT_URI_KEY)) |
665 | 665 | .isEqualTo(TEST_SCREENSHOT_URI.toString());
|
666 |
| - assertThat(actualIntent.getStringExtra(INFO_TEXT_EXTRA_KEY)) |
| 666 | + assertThat(actualIntent.getStringExtra(INFO_TEXT_KEY)) |
667 | 667 | .isEqualTo("Some terms and conditions");
|
668 | 668 | assertThat(firebaseAppDistribution.isFeedbackInProgress()).isTrue();
|
669 | 669 | }
|
@@ -691,10 +691,10 @@ public void startFeedback_withUri_doesNotTakeScreenshot() throws InterruptedExce
|
691 | 691 | Intent expectedIntent = new Intent(activity, FeedbackActivity.class);
|
692 | 692 | Intent actualIntent = shadowOf(RuntimeEnvironment.getApplication()).getNextStartedActivity();
|
693 | 693 | assertEquals(expectedIntent.getComponent(), actualIntent.getComponent());
|
694 |
| - assertThat(actualIntent.getStringExtra(RELEASE_NAME_EXTRA_KEY)).isEqualTo("release-name"); |
695 |
| - assertThat(actualIntent.getStringExtra(SCREENSHOT_URI_EXTRA_KEY)) |
| 694 | + assertThat(actualIntent.getStringExtra(RELEASE_NAME_KEY)).isEqualTo("release-name"); |
| 695 | + assertThat(actualIntent.getStringExtra(SCREENSHOT_URI_KEY)) |
696 | 696 | .isEqualTo(providedUri.toString());
|
697 |
| - assertThat(actualIntent.getStringExtra(INFO_TEXT_EXTRA_KEY)) |
| 697 | + assertThat(actualIntent.getStringExtra(INFO_TEXT_KEY)) |
698 | 698 | .isEqualTo("Some terms and conditions");
|
699 | 699 | assertThat(firebaseAppDistribution.isFeedbackInProgress()).isTrue();
|
700 | 700 | }
|
@@ -737,9 +737,9 @@ public void startFeedback_screenshotFails_startActivityWithNoScreenshot()
|
737 | 737 | Intent expectedIntent = new Intent(activity, FeedbackActivity.class);
|
738 | 738 | Intent actualIntent = shadowOf(RuntimeEnvironment.getApplication()).getNextStartedActivity();
|
739 | 739 | assertEquals(expectedIntent.getComponent(), actualIntent.getComponent());
|
740 |
| - assertThat(actualIntent.getStringExtra(RELEASE_NAME_EXTRA_KEY)).isEqualTo("release-name"); |
741 |
| - assertThat(actualIntent.getStringExtra(SCREENSHOT_URI_EXTRA_KEY)).isNull(); |
742 |
| - assertThat(actualIntent.getStringExtra(INFO_TEXT_EXTRA_KEY)) |
| 740 | + assertThat(actualIntent.getStringExtra(RELEASE_NAME_KEY)).isEqualTo("release-name"); |
| 741 | + assertThat(actualIntent.getStringExtra(SCREENSHOT_URI_KEY)).isNull(); |
| 742 | + assertThat(actualIntent.getStringExtra(INFO_TEXT_KEY)) |
743 | 743 | .isEqualTo("Some terms and conditions");
|
744 | 744 | assertThat(firebaseAppDistribution.isFeedbackInProgress()).isTrue();
|
745 | 745 | }
|
|
0 commit comments