Search in sources :

Example 1 with Builder

use of org.opendaylight.yangtools.concepts.Builder in project bgpcep by opendaylight.

the class AbstractBmpPerPeerMessageParserTest method setUp.

@Before
public void setUp() {
    this.ctx = ServiceLoaderBGPExtensionProviderContext.getSingletonInstance();
    final MessageRegistry msgRegistry = this.ctx.getMessageRegistry();
    this.parser = new AbstractBmpPerPeerMessageParser<Builder<?>>(msgRegistry) {

        @Override
        public Notification parseMessageBody(final ByteBuf bytes) {
            return null;
        }

        @Override
        public int getBmpMessageType() {
            return 0;
        }
    };
}
Also used : MessageRegistry(org.opendaylight.protocol.bgp.parser.spi.MessageRegistry) PeerUpNotificationBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev171207.PeerUpNotificationBuilder) Builder(org.opendaylight.yangtools.concepts.Builder) PeerHeaderBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev171207.peer.header.PeerHeaderBuilder) ByteBuf(io.netty.buffer.ByteBuf) PeerUpNotification(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev171207.PeerUpNotification) Notification(org.opendaylight.yangtools.yang.binding.Notification) Before(org.junit.Before)

Aggregations

ByteBuf (io.netty.buffer.ByteBuf)1 Before (org.junit.Before)1 MessageRegistry (org.opendaylight.protocol.bgp.parser.spi.MessageRegistry)1 PeerUpNotification (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev171207.PeerUpNotification)1 PeerUpNotificationBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev171207.PeerUpNotificationBuilder)1 PeerHeaderBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev171207.peer.header.PeerHeaderBuilder)1 Builder (org.opendaylight.yangtools.concepts.Builder)1 Notification (org.opendaylight.yangtools.yang.binding.Notification)1