58d971a0799d85f4a856add2c9a80d32d643f4eb
[mdsal.git] / binding2 / mdsal-binding2-api / src / test / java / org / opendaylight / mdsal / binding / javav2 / api / NotificationRejectedExceptionTest.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.mdsal.binding.javav2.api;
10
11 import org.junit.Test;
12
13 public class NotificationRejectedExceptionTest {
14
15     @Test(expected = NotificationRejectedException.class)
16     public void constructWithCauseTest() throws Exception {
17         throw new NotificationRejectedException("test", new Throwable());
18     }
19
20     @Test(expected = NotificationRejectedException.class)
21     public void constructTest() throws Exception {
22         throw new NotificationRejectedException("test");
23     }
24 }