@Test public void instantiateRoutingService_linux() throws Exception { changeOsIsLinuxField(true); try { final Routing service = routingServiceFactory.instantiateRoutingService(routingDefinition); Assert.assertNotNull(service); } catch (Exception e) { Assert.fail("expected to create a service, got exception instead: " + e.getMessage()); } }
public Routing instantiateRoutingService(RoutingDefinition initializer) { if (SystemUtils.IS_OS_LINUX) { return new LinuxRoutingService(processFunction, initializer); } throw new UnsupportedOperationException("OS is not supported by service"); }
RoutingServiceFactory { public Routing instantiateRoutingService(RoutingDefinition initializer) { if (SystemUtils.IS_OS_LINUX) { return new LinuxRoutingService(processFunction, initializer); } throw new UnsupportedOperationException("OS is not supported by service"); } }
RoutingServiceFactory { public Routing instantiateRoutingService(RoutingDefinition initializer) { if (SystemUtils.IS_OS_LINUX) { return new LinuxRoutingService(processFunction, initializer); } throw new UnsupportedOperationException("OS is not supported by service"); }  }
RoutingServiceFactory { public Routing instantiateRoutingService(RoutingDefinition initializer) { if (SystemUtils.IS_OS_LINUX) { return new LinuxRoutingService(processFunction, initializer); } throw new UnsupportedOperationException("OS is not supported by service"); }  Routing instantiateRoutingService(RoutingDefinition initializer); }
RoutingServiceFactory { public Routing instantiateRoutingService(RoutingDefinition initializer) { if (SystemUtils.IS_OS_LINUX) { return new LinuxRoutingService(processFunction, initializer); } throw new UnsupportedOperationException("OS is not supported by service"); }  Routing instantiateRoutingService(RoutingDefinition initializer);  }