Add missing test assertions

This commit is contained in:
Gary Gregory 2024-05-25 08:01:43 -04:00
parent 408b660813
commit c6ce19a068
1 changed files with 3 additions and 0 deletions

View File

@ -84,8 +84,11 @@ public class DurationFormatUtilsTest extends AbstractLangTest {
private DurationFormatUtils.Token createTokenWithCount(final CharSequence value, final int count) {
final DurationFormatUtils.Token token = new DurationFormatUtils.Token(value, false, -1);
// To help debugging, toString() on a Token should never blow up.
assertNotNull(token.toString());
for (int i = 1; i < count; i++) {
token.increment();
assertNotNull(token.toString());
}
return token;
}