diff --git a/bundles/org.openhab.core.io.transport.modbus/src/test/java/org/openhab/core/io/transport/modbus/test/BitUtilitiesExtractIndividualMethodsTest.java b/bundles/org.openhab.core.io.transport.modbus/src/test/java/org/openhab/core/io/transport/modbus/test/BitUtilitiesExtractIndividualMethodsTest.java index 226a9f9ba..814dd9670 100644 --- a/bundles/org.openhab.core.io.transport.modbus/src/test/java/org/openhab/core/io/transport/modbus/test/BitUtilitiesExtractIndividualMethodsTest.java +++ b/bundles/org.openhab.core.io.transport.modbus/src/test/java/org/openhab/core/io/transport/modbus/test/BitUtilitiesExtractIndividualMethodsTest.java @@ -82,7 +82,7 @@ public class BitUtilitiesExtractIndividualMethodsTest { streamBuilder.add(new Object[] { expectedResult, type, bytesOffsetted, byteIndex }); // offsetted, with no extra bytes following - // (this is only done for successfull cases to avoid copyOfRange padding with zeros + // (this is only done for successful cases to avoid copyOfRange padding with zeros if (!(expectedResult instanceof Class)) { byte[] bytesOffsettedCutExtra = Arrays.copyOfRange(bytesOffsetted, 0, byteIndex + type.getBits() / 8); if (bytesOffsettedCutExtra.length != bytesOffsetted.length) { diff --git a/bundles/org.openhab.core/src/test/java/org/openhab/core/library/items/StateUtil.java b/bundles/org.openhab.core/src/test/java/org/openhab/core/library/items/StateUtil.java index fe59b26cd..2eb978d66 100644 --- a/bundles/org.openhab.core/src/test/java/org/openhab/core/library/items/StateUtil.java +++ b/bundles/org.openhab.core/src/test/java/org/openhab/core/library/items/StateUtil.java @@ -100,7 +100,7 @@ public class StateUtil { } public static void testAcceptedStates(GenericItem item) { - Set> successfullStates = new HashSet<>(); + Set> successfulStates = new HashSet<>(); for (State s : getAllStates()) { item.setState(s); @@ -111,7 +111,7 @@ public class StateUtil { } else { // the state should be set on the item now assertNotEquals(UnDefType.NULL, item.getState()); - successfullStates.add(s.getClass()); + successfulStates.add(s.getClass()); } // reset item item.setState(UnDefType.NULL); @@ -122,7 +122,7 @@ public class StateUtil { // test if the item accepts a state that is not in our test state list for (Class acceptedState : item.getAcceptedDataTypes()) { - if (!successfullStates.contains(acceptedState)) { + if (!successfulStates.contains(acceptedState)) { fail("Item '" + item.getType() + "' accepts untested state: " + acceptedState); } }