commit | 47952cc7bbe31eb143ef410b7007c9c7dfbc41bc | [log] [tgz] |
---|---|---|
author | Adrian Roos <roosa@google.com> | Wed Feb 26 16:40:45 2025 +0100 |
committer | Adrian Roos <roosa@google.com> | Wed Feb 26 15:48:27 2025 -0800 |
tree | 99cc4439ee687fab93d69757a34f66b0c13e95e8 | |
parent | 9990bc3e62daf24492e414052dc60004ce52ace9 [diff] |
AbstractExtendedMockitoRule: fix session leak if setup fails Calls tearDown even if early setup of the rule fails to ensure the MockitoSession gets closed. Otherwise every subsequent mockito test will fail. Bug: 296937563 Bug: 396193322 Bug: 397997489 Test: atest ExtendedMockitoRuleTest Change-Id: I6f0c2cefa45027118afbb5f4eba2203202f30e96
Libraries and utilities intended for use by module and framework code.
Since modules use the code in this project, it must adhere to mainline requirements, for example, by setting min_sdk_version in Soong modules.
This project uses a single source path for Java code. All Java code should go in the java
directory with subdirectories corresponding to the java package. Android.bp
files should go alongside the java source files, and should only include java source for a single java package to encourage good code hygiene.
Tests for java code should go in the javatests
directory and follow the same structure.