import org.junit.Test;
import org.opendaylight.protocol.pcep.PCEPDeserializerException;
-import org.opendaylight.protocol.pcep.PCEPDocumentedException;
-import org.opendaylight.protocol.pcep.PCEPErrors;
public class APITest {
assertEquals("Some error message.", e1.getErrorMessage());
assertTrue(e1.getCause() instanceof IllegalArgumentException);
}
-
- @Test
- public void testDocumentedException() throws PCEPDocumentedException {
- final PCEPDocumentedException de = new PCEPDocumentedException("", PCEPErrors.C_BIT_SET);
- assertEquals(PCEPErrors.C_BIT_SET, de.getError());
- }
}