@Test public void verifyIsRunning() { setupContextMock(true, true, true); when(contextMock.isRunning()).thenReturn(true); boolean isRunning = BeekeeperSchedulerApiary.isRunning(); assertThat(isRunning).isTrue(); }
@VisibleForTesting public static boolean isRunning() { return context != null && context.isRunning(); }
BeekeeperSchedulerApiary implements ApplicationContextAware { @VisibleForTesting public static boolean isRunning() { return context != null && context.isRunning(); } }
BeekeeperSchedulerApiary implements ApplicationContextAware { @VisibleForTesting public static boolean isRunning() { return context != null && context.isRunning(); }  }
BeekeeperSchedulerApiary implements ApplicationContextAware { @VisibleForTesting public static boolean isRunning() { return context != null && context.isRunning(); }  static void main(String[] args); @VisibleForTesting static boolean isRunning(); @VisibleForTesting static void stop(); @VisibleForTesting static MeterRegistry meterRegistry(); @VisibleForTesting static void resetStaticContext(); @Override void setApplicationContext(ApplicationContext applicationContext); }
BeekeeperSchedulerApiary implements ApplicationContextAware { @VisibleForTesting public static boolean isRunning() { return context != null && context.isRunning(); }  static void main(String[] args); @VisibleForTesting static boolean isRunning(); @VisibleForTesting static void stop(); @VisibleForTesting static MeterRegistry meterRegistry(); @VisibleForTesting static void resetStaticContext(); @Override void setApplicationContext(ApplicationContext applicationContext);  }