Convert uint tests to assertThrows() 55/92855/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 2 Oct 2020 13:28:32 +0000 (15:28 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 2 Oct 2020 14:00:16 +0000 (16:00 +0200)
commitb355455a078fbe3043c34bbe4f1ceab39aef11a6
tree9c0c60434f0a288376c920819dcda3784dcd57f9
parentc6510cf99fff6bd27c1abcc66e78558c9f8df713
Convert uint tests to assertThrows()

We have a number of tests which can be consolidated, use assertThrows.
This flushes out a bad test case, which is corrected.

Change-Id: I3b0b760cb89a4dbd93ebe44af2ed917b0698fc31
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/Uint16Test.java
yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/Uint32Test.java
yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/Uint64Test.java
yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/Uint8Test.java