@Test public void testNotKnown() { expect(hostService.getHostsByIp(IP1)).andReturn(Collections.<Host>emptySet()); replay(hostService); replay(interfaceService); assertFalse(proxyArp.isKnown(IP1)); }
@Override public boolean isKnown(IpAddress addr) { checkPermission(PACKET_READ); checkNotNull(addr, MAC_ADDR_NULL); Set<Host> hosts = hostService.getHostsByIp(addr); return !hosts.isEmpty(); }
ProxyArpManager implements ProxyArpService { @Override public boolean isKnown(IpAddress addr) { checkPermission(PACKET_READ); checkNotNull(addr, MAC_ADDR_NULL); Set<Host> hosts = hostService.getHostsByIp(addr); return !hosts.isEmpty(); } }
ProxyArpManager implements ProxyArpService { @Override public boolean isKnown(IpAddress addr) { checkPermission(PACKET_READ); checkNotNull(addr, MAC_ADDR_NULL); Set<Host> hosts = hostService.getHostsByIp(addr); return !hosts.isEmpty(); }  }
ProxyArpManager implements ProxyArpService { @Override public boolean isKnown(IpAddress addr) { checkPermission(PACKET_READ); checkNotNull(addr, MAC_ADDR_NULL); Set<Host> hosts = hostService.getHostsByIp(addr); return !hosts.isEmpty(); }  @Activate void activate(); @Deactivate void deactivate(); @Override boolean isKnown(IpAddress addr); @Override void reply(Ethernet eth, ConnectPoint inPort); @Override void forward(Ethernet eth, ConnectPoint inPort); @Override boolean handlePacket(PacketContext context); }
ProxyArpManager implements ProxyArpService { @Override public boolean isKnown(IpAddress addr) { checkPermission(PACKET_READ); checkNotNull(addr, MAC_ADDR_NULL); Set<Host> hosts = hostService.getHostsByIp(addr); return !hosts.isEmpty(); }  @Activate void activate(); @Deactivate void deactivate(); @Override boolean isKnown(IpAddress addr); @Override void reply(Ethernet eth, ConnectPoint inPort); @Override void forward(Ethernet eth, ConnectPoint inPort); @Override boolean handlePacket(PacketContext context);  }