Skip to content

Commit

Permalink
typo: successful (openhab#3236)
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov authored Dec 19, 2022
1 parent 5a9fb67 commit d48ac20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private static Stream<Object[]> registerVariations(Object expectedResult, ValueT
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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static List<State> getAllStates() {
}

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);
Expand All @@ -111,7 +111,7 @@ public static void testAcceptedStates(GenericItem item) {
} 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);
Expand All @@ -122,7 +122,7 @@ public static void testAcceptedStates(GenericItem item) {

// 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);
}
}
Expand Down

0 comments on commit d48ac20

Please sign in to comment.