@Test public void should_return_false_if_OS_is_not_Linux() { Platform.initialize(windowsXP(), toolkitProvider); assertThat(Platform.isLinux()).isFalse(); }
static { // initialize Platform.initialize(); }
@Test public void should_return_true_if_OS_is_Linux() { Platform.initialize(linux(), toolkitProvider); assertThat(Platform.isLinux()).isTrue(); }