Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void setup() throws Exception {
}

@Test
@Config(minSdk = 23, maxSdk = 25) // getActiveNotifications() not available <23
@Config(minSdk = Config.OLDEST_SDK, maxSdk = 25) // getActiveNotifications() not available <23
public void channelIgnored_belowApi26TargetSdk25() throws Exception {
setTargetSdkVersion(25);
createDisplayNotification(context, createNotificationMessage(), executor).handleNotification();
Expand All @@ -83,7 +83,7 @@ public void channelIgnored_belowApi26TargetSdk25() throws Exception {
}

@Test
@Config(minSdk = 23, maxSdk = 25) // getActiveNotifications() not available <23
@Config(minSdk = Config.OLDEST_SDK, maxSdk = 25) // getActiveNotifications() not available <23
public void channelIgnored_belowApi26TargetSdk26() throws Exception {
setTargetSdkVersion(26);
createDisplayNotification(context, createNotificationMessage(), executor).handleNotification();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public void testClickActionAndLink() {

/** Test that a valid notification with color is displayed. */
@Test
@Config(sdk = Build.VERSION_CODES.M)
@Config(sdk = Config.OLDEST_SDK)
public void testColor() {
final String color = "#123456";
Bundle data = new Bundle();
Expand All @@ -489,7 +489,7 @@ public void testColor() {
}

@Test
@Config(sdk = Build.VERSION_CODES.M)
@Config(sdk = Config.OLDEST_SDK)
public void testNoColor() {
Bundle data = new Bundle();
data.putString(KEY_TITLE, "title 123");
Expand All @@ -503,7 +503,7 @@ public void testNoColor() {

/** Test that the user can choose the default color via AndroidManifest metadata. */
@Test
@Config(sdk = Build.VERSION_CODES.M)
@Config(sdk = Config.OLDEST_SDK)
public void testColorFromMetadata() {
Bundle metadata = new Bundle();
metadata.putInt(
Expand Down
Loading