@Test public void testRemoveHost() throws Exception { provider.removeHost(mac, vlan); assertThat(providerService.hostId, is(hostId)); assertNull(providerService.hostDescription); assertThat(providerService.event, is("hostVanished")); providerService.clear(); }
protected void removeHost(MacAddress mac, VlanId vlan) { HostId hid = HostId.hostId(mac, vlan); providerService.hostVanished(hid); }
NetworkConfigHostProvider extends AbstractProvider implements HostProvider { protected void removeHost(MacAddress mac, VlanId vlan) { HostId hid = HostId.hostId(mac, vlan); providerService.hostVanished(hid); } }
NetworkConfigHostProvider extends AbstractProvider implements HostProvider { protected void removeHost(MacAddress mac, VlanId vlan) { HostId hid = HostId.hostId(mac, vlan); providerService.hostVanished(hid); } NetworkConfigHostProvider(); }
NetworkConfigHostProvider extends AbstractProvider implements HostProvider { protected void removeHost(MacAddress mac, VlanId vlan) { HostId hid = HostId.hostId(mac, vlan); providerService.hostVanished(hid); } NetworkConfigHostProvider(); @Override void triggerProbe(Host host); }
NetworkConfigHostProvider extends AbstractProvider implements HostProvider { protected void removeHost(MacAddress mac, VlanId vlan) { HostId hid = HostId.hostId(mac, vlan); providerService.hostVanished(hid); } NetworkConfigHostProvider(); @Override void triggerProbe(Host host);  }