typo: successful (#3236)

This commit is contained in:
Дилян Палаузов
2022-12-19 15:45:17 +01:00
committed by GitHub
parent 5a9fb679ef
commit d48ac20377
2 changed files with 4 additions and 4 deletions
@@ -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) {
@@ -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);
}
}