File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
lib/javatests/com/google/android/material/snackbar Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,8 @@ subprojects {
194194 compileSdkVersion rootProject. ext. compileSdkVersion
195195
196196 defaultConfig. minSdkVersion rootProject. ext. minSdkVersion
197+ defaultConfig. targetSdkVersion rootProject. ext. targetSdkVersion
198+
197199 // This disables the builds tools automatic vector -> PNG generation
198200 defaultConfig. generatedDensities = []
199201
Original file line number Diff line number Diff line change 1818
1919import com .google .android .material .R ;
2020
21+ import static android .os .Build .VERSION_CODES .JELLY_BEAN ;
2122import static com .google .common .truth .Truth .assertThat ;
2223
2324import android .content .Context ;
3132import org .junit .runner .RunWith ;
3233import org .robolectric .Robolectric ;
3334import org .robolectric .RobolectricTestRunner ;
35+ import org .robolectric .annotation .Config ;
3436import org .robolectric .annotation .LooperMode ;
3537import org .robolectric .annotation .internal .DoNotInstrument ;
3638import org .robolectric .shadow .api .Shadow ;
4042/** Tests for {@link com.google.android.material.snackbar.Snackbar}. */
4143@ RunWith (RobolectricTestRunner .class )
4244@ DoNotInstrument
45+ @ Config (sdk = JELLY_BEAN )
4346public class SnackbarTest {
4447
4548 private Snackbar snackbar ;
You can’t perform that action at this time.
0 commit comments