|
28 | 28 | import org.eclipse.smarthome.core.thing.type.ThingTypeBuilder;
|
29 | 29 | import org.junit.Test;
|
30 | 30 | import org.mockito.ArgumentCaptor;
|
31 |
| -import org.mockito.ArgumentMatchers; |
| 31 | +import org.mockito.Matchers; |
32 | 32 | import org.mockito.Mockito;
|
33 | 33 | import org.openhab.binding.zwave.ZWaveBindingConstants;
|
34 | 34 | import org.openhab.binding.zwave.internal.protocol.ZWaveAssociationGroup;
|
|
40 | 40 | import org.openhab.binding.zwave.internal.protocol.commandclass.ZWaveWakeUpCommandClass;
|
41 | 41 | import org.openhab.binding.zwave.internal.protocol.transaction.ZWaveCommandClassTransactionPayload;
|
42 | 42 |
|
| 43 | +import jdk.nashorn.internal.ir.annotations.Ignore; |
| 44 | + |
43 | 45 | /**
|
44 | 46 | * Test of the ZWaveThingHandler
|
45 | 47 | *
|
@@ -91,14 +93,14 @@ private ZWaveThingHandler doConfigurationUpdate(String param, Object value) {
|
91 | 93 |
|
92 | 94 | Mockito.when(controller.getOwnNodeId()).thenReturn(1);
|
93 | 95 | Mockito.when(controllerHandler.getOwnNodeId()).thenReturn(1);
|
94 |
| - Mockito.when(controllerHandler.getNode(ArgumentMatchers.anyInt())).thenReturn(node); |
| 96 | + Mockito.when(controllerHandler.getNode(Matchers.anyInt())).thenReturn(node); |
95 | 97 | Mockito.when(node.getNodeId()).thenReturn(1);
|
96 |
| - Mockito.when(node.getAssociationGroup(ArgumentMatchers.anyInt())).thenReturn(new ZWaveAssociationGroup(1)); |
97 |
| - Mockito.when(node.getCommandClass(ArgumentMatchers.eq(CommandClass.COMMAND_CLASS_WAKE_UP))) |
| 98 | + Mockito.when(node.getAssociationGroup(Matchers.anyInt())).thenReturn(new ZWaveAssociationGroup(1)); |
| 99 | + Mockito.when(node.getCommandClass(Matchers.eq(CommandClass.COMMAND_CLASS_WAKE_UP))) |
98 | 100 | .thenReturn(wakeupClass);
|
99 |
| - Mockito.when(node.getCommandClass(ArgumentMatchers.eq(CommandClass.COMMAND_CLASS_ASSOCIATION))) |
| 101 | + Mockito.when(node.getCommandClass(Matchers.eq(CommandClass.COMMAND_CLASS_ASSOCIATION))) |
100 | 102 | .thenReturn(associationClass);
|
101 |
| - Mockito.when(node.getCommandClass(ArgumentMatchers.eq(CommandClass.COMMAND_CLASS_NODE_NAMING))) |
| 103 | + Mockito.when(node.getCommandClass(Matchers.eq(CommandClass.COMMAND_CLASS_NODE_NAMING))) |
102 | 104 | .thenReturn(namingClass);
|
103 | 105 | } catch (NoSuchFieldException | SecurityException e) {
|
104 | 106 | e.printStackTrace();
|
|
0 commit comments