Skip to content

Commit 15749f2

Browse files
committed
devices: fix the "Determine operating mode" test
Signed-off-by: Diego Escalona <diego.escalona@digi.com>
1 parent f0289f6 commit 15749f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src/test/java/com/digi/xbee/api/XBeeDeviceDetermineOperatingModeTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ public void testDetermineOperatingModeDeviceInATMode() throws Exception {
214214
// Setup the resources for the test.
215215
Mockito.doThrow(new TimeoutException()).when(xbeeDevice).sendATCommand(Mockito.any(ATCommand.class));
216216
PowerMockito.doReturn(true).when(xbeeDevice, "enterATCommandMode");
217+
PowerMockito.doReturn(OperatingMode.AT).when(xbeeDevice, "getActualMode");
217218

218219
PowerMockito.mockStatic(Thread.class);
219220
Thread.sleep(Mockito.anyLong());

0 commit comments

Comments
 (0)