From d905add4747d6060355c44dac1dce0eccd8014fb Mon Sep 17 00:00:00 2001 From: Christopher Wiley Date: Wed, 25 May 2016 13:57:27 -0700 Subject: [PATCH] Annotate TetherInterfaceStateMachineTest for APCT APCT needs a little additional magic to pick up JUnit4 tests. Bug: 28958508 Test: Tests continue to pass Change-Id: Ia45d91bb3b06e60e3a46ffe738d4468356e066b3 --- .../tethering/TetherInterfaceStateMachineTest.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/services/tests/servicestests/src/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java b/services/tests/servicestests/src/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java index fb5a1cff2823c..2c54f3b869f01 100644 --- a/services/tests/servicestests/src/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java +++ b/services/tests/servicestests/src/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java @@ -29,14 +29,18 @@ import android.net.InterfaceConfiguration; import android.os.INetworkManagementService; import android.os.RemoteException; import android.os.test.TestLooper; +import android.support.test.filters.SmallTest; +import android.support.test.runner.AndroidJUnit4; import org.junit.Before; import org.junit.Test; +import org.junit.runner.RunWith; import org.mockito.InOrder; import org.mockito.Mock; import org.mockito.MockitoAnnotations; - +@RunWith(AndroidJUnit4.class) +@SmallTest public class TetherInterfaceStateMachineTest { private static final String IFACE_NAME = "testnet1"; private static final String UPSTREAM_IFACE = "upstream0"; @@ -241,4 +245,4 @@ public class TetherInterfaceStateMachineTest { upstreamIface); mLooper.dispatchAll(); } -} +} \ No newline at end of file