mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
typo: successful (#3236)
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
+3
-3
@@ -100,7 +100,7 @@ public class StateUtil {
|
||||
}
|
||||
|
||||
public static void testAcceptedStates(GenericItem item) {
|
||||
Set<Class<? extends State>> successfullStates = new HashSet<>();
|
||||
Set<Class<? extends State>> 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<? extends State> acceptedState : item.getAcceptedDataTypes()) {
|
||||
if (!successfullStates.contains(acceptedState)) {
|
||||
if (!successfulStates.contains(acceptedState)) {
|
||||
fail("Item '" + item.getType() + "' accepts untested state: " + acceptedState);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user