MCPcopy
hub / github.com/oshi/oshi / testPlatformEnum

Method testPlatformEnum

oshi-core/src/test/java/oshi/SystemInfoTest.java:83–88  ·  view source on GitHub ↗

Test that this platform is implemented..

()

Source from the content-addressed store, hash-verified

81 * Test that this platform is implemented..
82 */
83 @Test
84 void testPlatformEnum() {
85 assertThat("Unsupported OS", SystemInfo.getCurrentPlatform(), is(not(PlatformEnum.UNKNOWN)));
86 // Exercise the main method
87 main(null);
88 }
89
90 /**
91 * The main method, demonstrating use of classes.

Callers

nothing calls this directly

Calls 3

getCurrentPlatformMethod · 0.95
mainMethod · 0.95
assertThatMethod · 0.80

Tested by

no test coverage detected