From 4d7b7ecd7e10887cc80a330cdd40ceae9187db02 Mon Sep 17 00:00:00 2001 From: Mark Chien Date: Fri, 8 Dec 2023 06:33:28 +0000 Subject: [PATCH] Get rid of any unnecessary reset calls Calling resets at the beginning of setUp is unnecessary. Bug: 315368147 Test: TH Change-Id: I87030bc867d90752e745fd4a274581d1f3230f85 --- .../networkstack/tethering/UpstreamNetworkMonitorTest.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/Tethering/tests/unit/src/com/android/networkstack/tethering/UpstreamNetworkMonitorTest.java b/Tethering/tests/unit/src/com/android/networkstack/tethering/UpstreamNetworkMonitorTest.java index 045c0cb08a..90fd7099ef 100644 --- a/Tethering/tests/unit/src/com/android/networkstack/tethering/UpstreamNetworkMonitorTest.java +++ b/Tethering/tests/unit/src/com/android/networkstack/tethering/UpstreamNetworkMonitorTest.java @@ -108,9 +108,6 @@ public class UpstreamNetworkMonitorTest { @Before public void setUp() throws Exception { MockitoAnnotations.initMocks(this); - reset(mContext); - reset(mCS); - reset(mLog); when(mLog.forSubComponent(anyString())).thenReturn(mLog); when(mEntitleMgr.isCellularUpstreamPermitted()).thenReturn(true);