1
2
3
4
5 package oshi.driver.mac.disk;
6
7 import static org.hamcrest.MatcherAssert.assertThat;
8 import static org.hamcrest.Matchers.anEmptyMap;
9 import static org.hamcrest.Matchers.is;
10 import static org.hamcrest.Matchers.not;
11
12 import org.junit.jupiter.api.Test;
13 import org.junit.jupiter.api.condition.EnabledOnOs;
14 import org.junit.jupiter.api.condition.OS;
15
16 @EnabledOnOs(OS.MAC)
17 class FsstatTest {
18 @Test
19 void testQueryPartitionToMountMap() {
20 assertThat("Partition to mount map should not be empty.", Fsstat.queryPartitionToMountMap(),
21 is(not(anEmptyMap())));
22 }
23 }