use of nl.tudelft.watchdog.core.logic.interval.IDEIntervalManagerBase in project watchdog by TestRoots.
the class WatchDogEventManagerTest method setup.
@Before
public void setup() {
MockitoAnnotations.initMocks(this);
IDEIntervalManagerBase intervalManagerReal = new IntervalManager(Mockito.mock(PersisterBase.class), Mockito.mock(PersisterBase.class));
intervalManager = Mockito.spy(intervalManagerReal);
mockedTextEditor = Mockito.mock(ITextEditor.class);
WatchDogEventType.intervalManager = intervalManager;
WatchDogEventType.editorSpecificImplementation = new InitializationManager.EclipseWatchDogEventSpecificImplementation(intervalManager);
InactivityNotifiers.READING.updateNotifier(new InactivityNotifier(USER_ACTIVITY_TIMEOUT, WatchDogEventType.READING_INACTIVITY));
InactivityNotifiers.USER_INACTIVITY.updateNotifier(new UserInactivityNotifier(USER_ACTIVITY_TIMEOUT, WatchDogEventType.USER_INACTIVITY));
InactivityNotifiers.TYPING.updateNotifier(new InactivityNotifier(USER_ACTIVITY_TIMEOUT, WatchDogEventType.TYPING_INACTIVITY));
}
Aggregations