Added unit tests for new switches

This commit is contained in:
Bane Stojkovic
2022-10-06 19:24:06 +02:00
parent 064b4d31ee
commit da0ce8970d
2 changed files with 22 additions and 1 deletions
@@ -506,7 +506,7 @@ public class LeverSwitch extends AbstractTransparentComponent<String> implements
(index1 == 1 && (index2 == 5 || (index2 == 3 && position == 1) || (index2 == 7 && position == 3)));
case DP3T_5pos_Import:
positionConnections = DP3T_5pos_Import_CONNECTIONS.get(position);
return false;
break;
case DP5T:
return (index1 == 0 && index2 - index1 == position + 1)
|| (index2 == 11 && index2 - index1 == 5 - position);