@Test public void getInetAddressCallsGetAddress() { try { new Expectations() { { InetAddress.getByAddress((byte[]) any); } }; new InetPoint(new byte[] { 1, 2, 3 }, 5).getInetAddress(); } catch (UnknownHostException e) { fail("Unexpected exception: " + e); } }
public InetAddress getInetAddress() throws UnknownHostException { return InetAddress.getByAddress(address); }
InetPoint { public InetAddress getInetAddress() throws UnknownHostException { return InetAddress.getByAddress(address); } }
InetPoint { public InetAddress getInetAddress() throws UnknownHostException { return InetAddress.getByAddress(address); } InetPoint(String host, int port, boolean forward);  InetPoint(byte[] address, int port);  InetPoint(byte[] address, int port, boolean forward ); }
InetPoint { public InetAddress getInetAddress() throws UnknownHostException { return InetAddress.getByAddress(address); } InetPoint(String host, int port, boolean forward);  InetPoint(byte[] address, int port);  InetPoint(byte[] address, int port, boolean forward ); InetAddress getInetAddress(); boolean isIPv6Address(); @Override String toString(); }
InetPoint { public InetAddress getInetAddress() throws UnknownHostException { return InetAddress.getByAddress(address); } InetPoint(String host, int port, boolean forward);  InetPoint(byte[] address, int port);  InetPoint(byte[] address, int port, boolean forward ); InetAddress getInetAddress(); boolean isIPv6Address(); @Override String toString(); final byte[] address; final int port; final boolean forward; }