1394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov/* 2394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * Copyright (C) 2015 The Android Open Source Project 3394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * 4394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * Licensed under the Apache License, Version 2.0 (the "License"); 5394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * you may not use this file except in compliance with the License. 6394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * You may obtain a copy of the License at 7394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * 8394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * http://www.apache.org/licenses/LICENSE-2.0 9394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * 10394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * Unless required by applicable law or agreed to in writing, software 11394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * distributed under the License is distributed on an "AS IS" BASIS, 12394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * See the License for the specific language governing permissions and 14394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov * limitations under the License. 15394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov */ 16394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov 17394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikovpackage android.support.design.widget; 18394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov 19394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikovimport android.app.Activity; 202d737bf9ac1936da8ceeae396f60efb63619a6bbAurimas Liutikasimport android.support.test.rule.BootlegActivityTestRule; 21394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikovimport android.support.test.runner.AndroidJUnit4; 222d737bf9ac1936da8ceeae396f60efb63619a6bbAurimas Liutikas 23ee3e8053ef6b55e31fa0be004061318ec394eb64Kirill Grouchnikovimport org.junit.Rule; 24394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikovimport org.junit.runner.RunWith; 25394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov 26394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov@RunWith(AndroidJUnit4.class) 27ee3e8053ef6b55e31fa0be004061318ec394eb64Kirill Grouchnikovpublic abstract class BaseInstrumentationTestCase<A extends Activity> { 28ee3e8053ef6b55e31fa0be004061318ec394eb64Kirill Grouchnikov @Rule 292d737bf9ac1936da8ceeae396f60efb63619a6bbAurimas Liutikas public final BootlegActivityTestRule<A> mActivityTestRule; 30394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov 31394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov protected BaseInstrumentationTestCase(Class<A> activityClass) { 322d737bf9ac1936da8ceeae396f60efb63619a6bbAurimas Liutikas mActivityTestRule = new BootlegActivityTestRule<>(activityClass); 33394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov } 34394c4272d0e220cf7af236665eecaf99dfed25b1Kirill Grouchnikov} 35