Checks that mc contains only nrof create-events and nothing else @param nrof how many creates to expect
(int nrof)
| 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()) { |
no test coverage detected