1 /*
2  * Copyright (C) 2018 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package androidx.testinfra.placeholderintegrationtest;
18 
19 import androidx.test.ext.junit.runners.AndroidJUnit4;
20 import androidx.test.filters.LargeTest;
21 import androidx.test.filters.MediumTest;
22 import androidx.test.filters.SmallTest;
23 
24 import org.junit.Test;
25 import org.junit.runner.RunWith;
26 
27 /**
28  * Testing infra requires at least 1 test to be run. This breaks the
29  * incremental test runner which runs only affected tests, which may
30  * not include tests from each group. This test ensures that there
31  * is always one and it is always allowed to run by the
32  * AffectedModuleDetector.
33  */
34 @RunWith(AndroidJUnit4.class)
35 public class PlaceholderTest {
36     @Test
37     @SmallTest
testSmall()38     public void testSmall() {
39     }
40 
41     @Test
42     @MediumTest
testMedium()43     public void testMedium() {
44     }
45 
46     @Test
47     @LargeTest
testLarge()48     public void testLarge() {
49     }
50 }
51