Arguments.integerArgument("foo bar") should cause an IllegalArgumentException as it's impossible to trigger such an argument from the command line as it has a space in it.
It would be possible to trigger it if the arguments didn't come from the command line but that fact does not warrant a lack of this check.
Arguments.integerArgument("foo bar") should cause an IllegalArgumentException as it's impossible to trigger such an argument from the command line as it has a space in it.
It would be possible to trigger it if the arguments didn't come from the command line but that fact does not warrant a lack of this check.