use of org.webpieces.nio.api.libs.PacketProcessorFactory in project webpieces by deanhiller.
the class TestUnpacketizer method setUpImpl.
//--------------------------------------------------------------------
// BUSINESS METHODS
//--------------------------------------------------------------------
protected void setUpImpl() {
listener = createMock(PacketListener.class);
listener.setDefaultBehavior("incomingPacket", new CloneByteBuffer());
Map<String, Object> p = new HashMap<String, Object>();
p.put(FactoryCreator.KEY_PACKET_SEPARATOR, PACKET_SEPARATOR);
FactoryCreator creator = FactoryCreator.createFactory(null);
PacketProcessorFactory factory = creator.createPacketProcFactory(p);
unpacketizer = factory.createPacketProcessor("someId");
helper = ChannelServiceFactory.bufferHelper(null);
unpacketizer.setPacketListener((PacketListener) listener);
}
Aggregations