@Test public void toStringTest() throws Exception { final String expected = "LinuxRoute [virtualIp=" + virtualIp + ", interfaceName=" + ifName + ", netmask=" + netMask + ", active=false]"; Assert.assertEquals("Expected \"" + expected + "\", got", expected, service.toString()); }
@Override public String toString() { return "LinuxRoute [" + "virtualIp=" + addressToString(virtualIp) + ", interfaceName=" + interfaceName + ", netmask=" + addressToString(netmask) + ", active=" + isRouteActive + ']'; }
LinuxRoutingService implements Routing { @Override public String toString() { return "LinuxRoute [" + "virtualIp=" + addressToString(virtualIp) + ", interfaceName=" + interfaceName + ", netmask=" + addressToString(netmask) + ", active=" + isRouteActive + ']'; } }
LinuxRoutingService implements Routing { @Override public String toString() { return "LinuxRoute [" + "virtualIp=" + addressToString(virtualIp) + ", interfaceName=" + interfaceName + ", netmask=" + addressToString(netmask) + ", active=" + isRouteActive + ']'; } LinuxRoutingService(SystemCall systemCall, RoutingDefinition initializer); }
LinuxRoutingService implements Routing { @Override public String toString() { return "LinuxRoute [" + "virtualIp=" + addressToString(virtualIp) + ", interfaceName=" + interfaceName + ", netmask=" + addressToString(netmask) + ", active=" + isRouteActive + ']'; } LinuxRoutingService(SystemCall systemCall, RoutingDefinition initializer); String executeCommand(String command); int executeCommandRC(String command); @Override synchronized Routing setInterface(String inf); @Override Routing setNetmask(final IpAddress netmask); @Override IpAddress getNetmask(); @Override synchronized String getInterface(); @Override synchronized IpAddress getVirtualIp(); @Override synchronized boolean isActive(); @Override synchronized boolean removeRouteForCurrentService(); @Override synchronized boolean addRouteForCurrentService(); @Override boolean updateArpTableForCurrentService(); @Override String toString(); }
LinuxRoutingService implements Routing { @Override public String toString() { return "LinuxRoute [" + "virtualIp=" + addressToString(virtualIp) + ", interfaceName=" + interfaceName + ", netmask=" + addressToString(netmask) + ", active=" + isRouteActive + ']'; } LinuxRoutingService(SystemCall systemCall, RoutingDefinition initializer); String executeCommand(String command); int executeCommandRC(String command); @Override synchronized Routing setInterface(String inf); @Override Routing setNetmask(final IpAddress netmask); @Override IpAddress getNetmask(); @Override synchronized String getInterface(); @Override synchronized IpAddress getVirtualIp(); @Override synchronized boolean isActive(); @Override synchronized boolean removeRouteForCurrentService(); @Override synchronized boolean addRouteForCurrentService(); @Override boolean updateArpTableForCurrentService(); @Override String toString();  }