@Test(expected = UnknownRoadException.class) public void deleteHiveDestination_UnknownRoad() throws Exception { doThrow(UnknownRoadException.class).when(hiveDestinationAdminClient).deleteHiveDestination(NAME); underTest.deleteHiveDestination(NAME); }
@Override public void deleteHiveDestination(String name) throws UnknownRoadException, UnknownDestinationException { hiveDestinationAdminClient.deleteHiveDestination(name); }
HiveDestinationServiceImpl implements HiveDestinationService { @Override public void deleteHiveDestination(String name) throws UnknownRoadException, UnknownDestinationException { hiveDestinationAdminClient.deleteHiveDestination(name); } }
HiveDestinationServiceImpl implements HiveDestinationService { @Override public void deleteHiveDestination(String name) throws UnknownRoadException, UnknownDestinationException { hiveDestinationAdminClient.deleteHiveDestination(name); } @Autowired  HiveDestinationServiceImpl(HiveDestinationAdminClient hiveDestinationAdminClient); }
HiveDestinationServiceImpl implements HiveDestinationService { @Override public void deleteHiveDestination(String name) throws UnknownRoadException, UnknownDestinationException { hiveDestinationAdminClient.deleteHiveDestination(name); } @Autowired  HiveDestinationServiceImpl(HiveDestinationAdminClient hiveDestinationAdminClient); @Override HiveDestinationModel getHiveDestination(String name); @Override void createHiveDestination(String name, HiveDestinationModel hiveDestinationModel); @Override void updateHiveDestination(String name, HiveDestinationModel hiveDestinationModel); @Override void deleteHiveDestination(String name); }
HiveDestinationServiceImpl implements HiveDestinationService { @Override public void deleteHiveDestination(String name) throws UnknownRoadException, UnknownDestinationException { hiveDestinationAdminClient.deleteHiveDestination(name); } @Autowired  HiveDestinationServiceImpl(HiveDestinationAdminClient hiveDestinationAdminClient); @Override HiveDestinationModel getHiveDestination(String name); @Override void createHiveDestination(String name, HiveDestinationModel hiveDestinationModel); @Override void updateHiveDestination(String name, HiveDestinationModel hiveDestinationModel); @Override void deleteHiveDestination(String name);  }