Remove usage of ExpectedException 15/87115/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 23 Jan 2020 16:50:22 +0000 (17:50 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 23 Jan 2020 20:46:42 +0000 (21:46 +0100)
commit0cadf0a17caa015c250d9169687b86b2183f22bd
tree36f27d7c280b21e0d93e50f985e1e4fb86763633
parent70480c62399318c1cad70e51db2817b2f98ce70d
Remove usage of ExpectedException

New JUnit provides an explicit assertThrows(), which supersedes
the old ExpectedException pattern. Migrate our tests to the new way
of doing things.

Change-Id: Idac4862fc8e20e4a27b2ac766c4d1770208195a8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/util/src/test/java/org/opendaylight/yangtools/util/ListenerRegistryTest.java
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/CaseStmtTest.java
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/SubstatementValidatorTest.java