@Test public void should_not_execute_if_disabled() { when(conf.isEnabled()).thenReturn(false); boolean shouldExecute = scmActivitySensor.shouldExecuteOnProject(project); assertThat(shouldExecute).isFalse(); }
@Test public void should_execute() { when(conf.isEnabled()).thenReturn(true); boolean shouldExecute = scmActivitySensor.shouldExecuteOnProject(project); assertThat(shouldExecute).isTrue(); }