Avoid re-throwing exceptions directly
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / parser / util / TopologicalSortTest.java
index 568adcf74b03b609010322f31458bb2688e5dc76..6a7b00724e09914a36ca71bd78cdd59da16cd0a7 100644 (file)
@@ -35,11 +35,8 @@ public class TopologicalSortTest {
         node2.addEdge(node3);
         node3.addEdge(node1);
 
-        try {
-            TopologicalSort.sort(nodes);
-        } catch (IllegalStateException e) {
-            throw e;
-        }
+        // We expect an IllegalStateException here
+        TopologicalSort.sort(nodes);
     }
 
     @Test