@Test(expected = UnknownRoadException.class) public void getHiveDestination_deletedRoad() throws Exception { road.setDeleted(true); store.put(NAME, road); underTest.getHiveDestination(NAME); }
@Override public Optional<HiveDestination> getHiveDestination(String name) throws UnknownRoadException { return destinations(name).map(e -> (HiveDestination) e.get("hive")); }
TollBoothHiveDestinationAdminClient implements HiveDestinationAdminClient { @Override public Optional<HiveDestination> getHiveDestination(String name) throws UnknownRoadException { return destinations(name).map(e -> (HiveDestination) e.get("hive")); } }
TollBoothHiveDestinationAdminClient implements HiveDestinationAdminClient { @Override public Optional<HiveDestination> getHiveDestination(String name) throws UnknownRoadException { return destinations(name).map(e -> (HiveDestination) e.get("hive")); } @Autowired  TollBoothHiveDestinationAdminClient(
      @Value("#{store}") Map<String, Road> roads,
      PatchSetEmitter modificationEmitter); }
TollBoothHiveDestinationAdminClient implements HiveDestinationAdminClient { @Override public Optional<HiveDestination> getHiveDestination(String name) throws UnknownRoadException { return destinations(name).map(e -> (HiveDestination) e.get("hive")); } @Autowired  TollBoothHiveDestinationAdminClient(
      @Value("#{store}") Map<String, Road> roads,
      PatchSetEmitter modificationEmitter); @Override Optional<HiveDestination> getHiveDestination(String name); @Override void createHiveDestination(String name, HiveDestination hiveDestination); @Override void deleteHiveDestination(String name); @Override void updateHiveDestination(String name, HiveDestination hiveDestination); }
TollBoothHiveDestinationAdminClient implements HiveDestinationAdminClient { @Override public Optional<HiveDestination> getHiveDestination(String name) throws UnknownRoadException { return destinations(name).map(e -> (HiveDestination) e.get("hive")); } @Autowired  TollBoothHiveDestinationAdminClient(
      @Value("#{store}") Map<String, Road> roads,
      PatchSetEmitter modificationEmitter); @Override Optional<HiveDestination> getHiveDestination(String name); @Override void createHiveDestination(String name, HiveDestination hiveDestination); @Override void deleteHiveDestination(String name); @Override void updateHiveDestination(String name, HiveDestination hiveDestination);  }