mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 10:19:41 +02:00
[core] Improve NumberUtil's exception message and fix javadoc
This commit is contained in:
parent
f045c0dd08
commit
9a8ee3c8e3
2 changed files with 8 additions and 9 deletions
|
@ -44,9 +44,8 @@ public class DataValidationHelperTest {
|
|||
() -> element.checkConsistency(field));
|
||||
assertEquals("Field type 'jid-single' is not consistent with validation method 'basic'.", vce.getMessage());
|
||||
|
||||
IllegalArgumentException iae = assertThrows(IllegalArgumentException.class,
|
||||
assertThrows(IllegalArgumentException.class,
|
||||
() -> new ListRange(-1L, 1L));
|
||||
assertEquals("unsigned 32-bit integers can't be negative", iae.getMessage());
|
||||
|
||||
element.setListRange(new ListRange(10L, 100L));
|
||||
vce = assertThrows(ValidationConsistencyException.class, () -> element.checkConsistency(field));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue