- @Before
- public void setUp() throws Exception {
- executorServiceSpy = Executors.newScheduledThreadPool(1);
-
- doNothing().when(listener).disconnect();
- doNothing().when(underlyingSalFacade).onDeviceConnected(isNull(), isNull(), any(RemoteDeviceServices.class));
-
- keepaliveSalFacade =
- new KeepaliveSalFacade(REMOTE_DEVICE_ID, underlyingSalFacade, executorServiceSpy, 1L, 1L);
+ @BeforeEach
+ void beforeEach() {
+ timer = new HashedWheelTimer();
+ keepaliveSalFacade = new KeepaliveSalFacade(REMOTE_DEVICE_ID, underlyingSalFacade, timer, 1L, 1L);