tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit c4ddebb9f6f746852a588c8e93a2874449f7b84b
parent eaeda779e89574b31b38beb11d638fa4391e622c
Author: Titouan Thibaud <tthibaud@mozilla.com>
Date:   Wed, 29 Oct 2025 13:04:43 +0000

Bug 1997082 - Fix NoStaticOrObjectMockingDetectorTest unused property lint issue. r=android-reviewers,mcarare

Differential Revision: https://phabricator.services.mozilla.com/D270487

Diffstat:
Mmobile/android/android-components/components/tooling/lint/src/test/java/mozilla/components/tooling/lint/NoStaticOrObjectMockingDetectorTest.kt | 19+------------------
1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/mobile/android/android-components/components/tooling/lint/src/test/java/mozilla/components/tooling/lint/NoStaticOrObjectMockingDetectorTest.kt b/mobile/android/android-components/components/tooling/lint/src/test/java/mozilla/components/tooling/lint/NoStaticOrObjectMockingDetectorTest.kt @@ -315,24 +315,7 @@ class NoStaticOrObjectMockingDetectorTest : LintDetectorTest() { fun `Mockito mockConstruction usage reports NoStaticMocking`() { lint() .allowMissingSdk() - .files( - mockitoStubs, - TestFiles.kotlin( - """ - package com.example.test - import org.mockito.Mockito - - class SomeDependency { // Define SomeDependency here for self-containment - fun getValue() = "real" - } - class MyMockitoConstructorTest { - fun setup() { - Mockito.mockConstruction(SomeDependency::class.java) // VIOLATION - } - } - """, - ).indented(), - ) + .files(mockitoStubs, mockitoMockConstructionUsage) .run() .expectErrorCount(1) .expectContains("Usage of Mockito's 'mockConstruction' for static/constructor mocking is discouraged.")