From dd73cb628bf46b8d85a1b551bea9724dd98939d2 Mon Sep 17 00:00:00 2001 From: Michael Comella Date: Mon, 28 Sep 2020 14:05:49 -0700 Subject: [PATCH] For #13959: clean up existing StrictMode test names. --- .../test/java/org/mozilla/fenix/StrictModeManagerTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/test/java/org/mozilla/fenix/StrictModeManagerTest.kt b/app/src/test/java/org/mozilla/fenix/StrictModeManagerTest.kt index 5c5601c9d..61a14ef1f 100644 --- a/app/src/test/java/org/mozilla/fenix/StrictModeManagerTest.kt +++ b/app/src/test/java/org/mozilla/fenix/StrictModeManagerTest.kt @@ -49,21 +49,21 @@ class StrictModeManagerTest { } @Test - fun `test enableStrictMode in release`() { + fun `GIVEN we're in a release build WHEN we enable strict mode THEN we don't set policies`() { releaseManager.enableStrictMode(false) verify(exactly = 0) { StrictMode.setThreadPolicy(any()) } verify(exactly = 0) { StrictMode.setVmPolicy(any()) } } @Test - fun `test enableStrictMode in debug`() { + fun `GIVEN we're in a debug build WHEN we enable strict mode THEN we set policies`() { debugManager.enableStrictMode(false) verify { StrictMode.setThreadPolicy(any()) } verify { StrictMode.setVmPolicy(any()) } } @Test - fun `test changeStrictModePolicies in debug`() { + fun `GIVEN we're in a debug build WHEN we attach a listener THEN we attach to the fragment lifecycle and detach when onFragmentResumed is called`() { val callbacks = slot() debugManager.attachListenerToDisablePenaltyDeath(fragmentManager)