5package dev.flutter.scenariosui;
7import static org.junit.Assert.*;
11import androidx.annotation.NonNull;
12import androidx.test.ext.junit.runners.AndroidJUnit4;
13import androidx.test.filters.LargeTest;
14import androidx.test.rule.ActivityTestRule;
15import dev.flutter.scenarios.GetBitmapActivity;
18import org.junit.runner.RunWith;
20@RunWith(AndroidJUnit4.class)
25 new ActivityTestRule<>(
30 Intent intent =
new Intent(Intent.ACTION_MAIN);
31 intent.putExtra(
"scenario_name",
"get_bitmap");
35 assertEquals(
bitmap.getPixel(10, 10), 0xFFFF0000);
36 assertEquals(
bitmap.getPixel(10,
bitmap.getHeight() - 10), 0xFF0000FF);
ActivityTestRule< GetBitmapActivity > activityRule