• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2020 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 android.dynamicmime.testapp.reboot;
18 
19 import android.dynamicmime.testapp.SingleAppTest;
20 import android.dynamicmime.testapp.commands.MimeGroupCommands;
21 
22 import androidx.test.ext.junit.runners.AndroidJUnit4;
23 
24 import org.junit.After;
25 import org.junit.Before;
26 import org.junit.runner.RunWith;
27 
28 /**
29  * Post-reboot part of {@link SingleAppTest}
30  *
31  * {@link MimeGroupCommands} are disabled during test body execution
32  */
33 @RunWith(AndroidJUnit4.class)
34 public class PostRebootSingleAppTest extends SingleAppTest {
35     private MimeGroupCommands mCommands;
36 
PostRebootSingleAppTest()37     public PostRebootSingleAppTest() {
38         super();
39         mCommands = getCommands();
40     }
41 
42     @Before
setUp()43     public void setUp() {
44         setCommands(MimeGroupCommands.noOp());
45     }
46 
47     @After
48     @Override
tearDown()49     public void tearDown() {
50         setCommands(mCommands);
51         super.tearDown();
52     }
53 }
54