summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2022-11-11 20:08:38 +0000
committer Colin Cross <ccross@android.com> 2022-11-11 20:08:38 +0000
commit746b0badda86adfa458bf546df2f46c513d6d8e3 (patch)
tree9d660ddcfcf506ff110dea6575fd042a8d22a54d
parente137fe5186d42a3faddac3474e57174f2e8a33bf (diff)
Fix ErrorProne finding in WmTests
Fixes: out/soong/.intermediates/frameworks/base/services/tests/wmtests/WmTests/android_common/errorprone/srcjars/frameworks/base/services/tests/wmtests/src/com/android/server/wm/LetterboxConfigurationPersisterTest.java:75: error: [JUnit4TearDownNotRun] tearDown() method will not be run; please add JUnit's @After annotation Bug: 258754271 Bug: 256019562 Test: m RUN_ERROR_PRONE=true javac-check lint-check Change-Id: Iafaf8d43984816e6d5434205d935cc1d8843a34d
-rw-r--r--services/tests/wmtests/src/com/android/server/wm/LetterboxConfigurationPersisterTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/tests/wmtests/src/com/android/server/wm/LetterboxConfigurationPersisterTest.java b/services/tests/wmtests/src/com/android/server/wm/LetterboxConfigurationPersisterTest.java
index 1246d1ee46e8..1be9de78cd27 100644
--- a/services/tests/wmtests/src/com/android/server/wm/LetterboxConfigurationPersisterTest.java
+++ b/services/tests/wmtests/src/com/android/server/wm/LetterboxConfigurationPersisterTest.java
@@ -35,6 +35,7 @@ import com.android.internal.annotations.VisibleForTesting;
import junit.framework.Assert;
+import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@ -72,6 +73,7 @@ public class LetterboxConfigurationPersisterTest {
mLetterboxConfigurationPersister.start();
}
+ @After
public void tearDown() throws InterruptedException {
deleteConfiguration(mLetterboxConfigurationPersister, mPersisterQueue);
waitForCompletion(mPersisterQueue);