MCPcopy Create free account
hub / github.com/apache/qpid-proton-j / testDeliveryEvents

Method testDeliveryEvents

tests/python/proton_tests/engine.py:2377–2396  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2375 return snd, rcv
2376
2377 def testDeliveryEvents(self):
2378 snd, rcv = self.link("test-link")
2379 rcv.session.connection.collect(self.collector)
2380 rcv.open()
2381 rcv.flow(10)
2382 self.pump()
2383 self.expect(Event.CONNECTION_INIT, Event.SESSION_INIT,
2384 Event.LINK_INIT, Event.LINK_LOCAL_OPEN, Event.TRANSPORT)
2385 snd.delivery("delivery")
2386 snd.send(str2bin("Hello World!"))
2387 snd.advance()
2388 self.pump()
2389 self.expect()
2390 snd.open()
2391 self.pump()
2392 self.expect(Event.LINK_REMOTE_OPEN, Event.DELIVERY)
2393 rcv.session.connection.transport.unbind()
2394 rcv.session.connection.free()
2395 self.expect(Event.CONNECTION_UNBOUND, Event.TRANSPORT, Event.LINK_FINAL,
2396 Event.SESSION_FINAL, Event.CONNECTION_FINAL)
2397
2398 def testDeliveryEventsDisp(self):
2399 snd, rcv = self.testFlowEvents()

Callers

nothing calls this directly

Calls 12

str2binFunction · 0.90
expectMethod · 0.80
collectMethod · 0.65
openMethod · 0.65
flowMethod · 0.65
deliveryMethod · 0.65
sendMethod · 0.65
advanceMethod · 0.65
unbindMethod · 0.65
freeMethod · 0.65
linkMethod · 0.45
pumpMethod · 0.45

Tested by

no test coverage detected