Add missing test assertions
This commit is contained in:
parent
408b660813
commit
c6ce19a068
|
@ -84,8 +84,11 @@ public class DurationFormatUtilsTest extends AbstractLangTest {
|
||||||
|
|
||||||
private DurationFormatUtils.Token createTokenWithCount(final CharSequence value, final int count) {
|
private DurationFormatUtils.Token createTokenWithCount(final CharSequence value, final int count) {
|
||||||
final DurationFormatUtils.Token token = new DurationFormatUtils.Token(value, false, -1);
|
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++) {
|
for (int i = 1; i < count; i++) {
|
||||||
token.increment();
|
token.increment();
|
||||||
|
assertNotNull(token.toString());
|
||||||
}
|
}
|
||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue