@Test void demos_should_return_routing_problems() { when(routingProblems.all()).thenReturn(Arrays.asList(routingProblem)); Collection<RoutingProblem> problems = demoService.demos(); assertThat(problems).containsExactly(routingProblem); }
public Collection<RoutingProblem> demos() { return routingProblems.all(); }
DemoService { public Collection<RoutingProblem> demos() { return routingProblems.all(); } }
DemoService { public Collection<RoutingProblem> demos() { return routingProblems.all(); } @Autowired  DemoService(
            RoutingProblemList routingProblems,
            LocationService locationService,
            LocationRepository locationRepository,
            VehicleService vehicleService,
            VehicleRepository vehicleRepository,
            DataSetMarshaller dataSetMarshaller); }
DemoService { public Collection<RoutingProblem> demos() { return routingProblems.all(); } @Autowired  DemoService(
            RoutingProblemList routingProblems,
            LocationService locationService,
            LocationRepository locationRepository,
            VehicleService vehicleService,
            VehicleRepository vehicleRepository,
            DataSetMarshaller dataSetMarshaller); Collection<RoutingProblem> demos(); @Async void loadDemo(String name); String exportDataSet(); }
DemoService { public Collection<RoutingProblem> demos() { return routingProblems.all(); } @Autowired  DemoService(
            RoutingProblemList routingProblems,
            LocationService locationService,
            LocationRepository locationRepository,
            VehicleService vehicleService,
            VehicleRepository vehicleRepository,
            DataSetMarshaller dataSetMarshaller); Collection<RoutingProblem> demos(); @Async void loadDemo(String name); String exportDataSet();  }