Class BGPMessageParserMock

  • All Implemented Interfaces:

    public class BGPMessageParserMock
    extends Object
    implements MessageRegistry
    Mock implementation of MessageRegistry. It implements the required interface by having two internal maps, each used in one of the methods. It looks up the key provided to the method and returns whatever value is stored in the map.
    • Constructor Detail

      • BGPMessageParserMock

        public BGPMessageParserMock​(Map<io.netty.buffer.ByteBuf,​org.opendaylight.yangtools.yang.binding.Notification> messages)
        Creates a new BGPMessageParserMock with given messages.
        messages - represents a new map of ByteBuf and Notification