use of com.squarespace.template.StringView in project template-compiler by Squarespace.
the class InternationalFormattersTest method testExtraArgument.
public void testExtraArgument() throws Exception {
if (isJava8()) {
try {
MONEY_FORMATTER.validateArgs(new Arguments(new StringView(" en-US bad-arg")));
Assert.fail("expected ArgumentsException, too many arguments passed");
} catch (ArgumentsException e) {
// fall through
}
}
}
Aggregations