MCPcopy Create free account
hub / github.com/akeranen/the-one / checkCreates

Method checkCreates

test/AbstractRouterTest.java:83–89  ·  view source on GitHub ↗

Checks that mc contains only nrof create-events and nothing else @param nrof how many creates to expect

(int nrof)

Source from the content-addressed store, hash-verified

81 * @param nrof how many creates to expect
82 */
83 protected void checkCreates(int nrof) {
84 for (int i=0; i<nrof; i++) {
85 assertTrue(mc.next());
86 assertEquals(mc.TYPE_CREATE, mc.getLastType());
87 }
88 assertFalse("MC contained " + mc.getLastType(), mc.next());
89 }
90
91 protected void updateAllNodes() {
92 for (DTNHost node : utils.getAllHosts()) {

Callers 10

testCostValuesMethod · 0.80
testThresholdMethod · 0.80
testRoutingMethod · 0.80
testMessageRelayAbortMethod · 0.80
testAbortWhenReadyMethod · 0.80
testQueueManagementMethod · 0.80
testTtlExpiryMethod · 0.80

Calls 2

nextMethod · 0.80
getLastTypeMethod · 0.80

Tested by

no test coverage detected