@Test public void removeRouteForCurrentService_1() throws Exception { mockCommand(0); Assert.assertTrue("Expected True as Routed was removed by ip command, got", service.removeRouteForCurrentService()); }
@Override public synchronized boolean removeRouteForCurrentService() { boolean result = (executeCommandRC(createIfaceUnSetIpCmd()) == 0); if (result) { isRouteActive = false; } return result; }
LinuxRoutingService implements Routing { @Override public synchronized boolean removeRouteForCurrentService() { boolean result = (executeCommandRC(createIfaceUnSetIpCmd()) == 0); if (result) { isRouteActive = false; } return result; } }
LinuxRoutingService implements Routing { @Override public synchronized boolean removeRouteForCurrentService() { boolean result = (executeCommandRC(createIfaceUnSetIpCmd()) == 0); if (result) { isRouteActive = false; } return result; } LinuxRoutingService(SystemCall systemCall, RoutingDefinition initializer); }
LinuxRoutingService implements Routing { @Override public synchronized boolean removeRouteForCurrentService() { boolean result = (executeCommandRC(createIfaceUnSetIpCmd()) == 0); if (result) { isRouteActive = false; } return result; } 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 synchronized boolean removeRouteForCurrentService() { boolean result = (executeCommandRC(createIfaceUnSetIpCmd()) == 0); if (result) { isRouteActive = false; } return result; } 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();  }