diff options
author | Matej Drobnič <services+github@matejdro.com> | 2023-12-29 17:15:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-29 17:15:21 +0100 |
commit | f476086114a56d214558f37b066849150a141390 (patch) | |
tree | b1b19c004915e7a953e2b416d9cd27dd5efd607e /core/src/test/java | |
parent | 58081fe5bf7d9ad28f089cf10b2c17bfcfc8bbc7 (diff) | |
download | AntennaPod-f476086114a56d214558f37b066849150a141390.zip |
Check if volume boost effect is supported on the device (#6808)
Diffstat (limited to 'core/src/test/java')
-rw-r--r-- | core/src/test/java/de/danoeh/antennapod/core/feed/VolumeAdaptionSettingTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/src/test/java/de/danoeh/antennapod/core/feed/VolumeAdaptionSettingTest.java b/core/src/test/java/de/danoeh/antennapod/core/feed/VolumeAdaptionSettingTest.java index 30767bdc8..966351a5e 100644 --- a/core/src/test/java/de/danoeh/antennapod/core/feed/VolumeAdaptionSettingTest.java +++ b/core/src/test/java/de/danoeh/antennapod/core/feed/VolumeAdaptionSettingTest.java @@ -1,6 +1,9 @@ package de.danoeh.antennapod.core.feed; import de.danoeh.antennapod.model.feed.VolumeAdaptionSetting; + +import org.junit.After; +import org.junit.Before; import org.junit.Test; import static org.hamcrest.Matchers.equalTo; @@ -11,6 +14,16 @@ import static org.junit.Assert.assertTrue; public class VolumeAdaptionSettingTest { + @Before + public void setUp() throws Exception { + VolumeAdaptionSetting.setBoostSupported(false); + } + + @After + public void tearDown() throws Exception { + VolumeAdaptionSetting.setBoostSupported(null); + } + @Test public void mapOffToInteger() { VolumeAdaptionSetting setting = VolumeAdaptionSetting.OFF; |