Skip to content

Commit

Permalink
fix test case for simple-xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Hoß committed Oct 30, 2022
1 parent 2f2d8f6 commit 3e21284
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public final class StorageUnitConverter implements Converter<StorageUnit<?>> {

@Override
public void write(final OutputNode outputNode, final StorageUnit<?> storageUnit) throws Exception {
outputNode.setValue(storageUnit.toString());
outputNode.setValue(storageUnit.inByte().toString());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void shouldConvertStorageUnitToString() throws Exception {
final var unit = StorageUnits.kibibyte(2);
converter.write(output, unit);

Mockito.verify(output).setValue("2 KiB");
Mockito.verify(output).setValue("2048");
}

}

0 comments on commit 3e21284

Please sign in to comment.