Remove usage of ExpectedException
[yangtools.git] / common / util / src / test / java / org / opendaylight / yangtools / util / ListenerRegistryTest.java
index a5996bbc6db705b38730665a2f33f2e2f27f014e..d8b3f792dee1894358f5a8b940cc5a96a40a36e8 100644 (file)
@@ -13,20 +13,14 @@ import static org.junit.Assert.assertNotNull;
 import com.google.common.collect.ImmutableSet;
 import java.util.EventListener;
 import org.junit.Before;
-import org.junit.Rule;
 import org.junit.Test;
-import org.junit.rules.ExpectedException;
 import org.opendaylight.yangtools.concepts.ListenerRegistration;
 
 public class ListenerRegistryTest {
-
     private TestEventListener testEventListener;
     private ExtendedTestEventListener extendedTestEventListener;
     private ListenerRegistry<TestEventListener> registry;
 
-    @Rule
-    public ExpectedException expException = ExpectedException.none();
-
     @Before
     public void init() {
         testEventListener = new TestEventListener() {};