@Test public void testOnSuccess() { createChargingStationCommandCallback.onSuccess(new Object()); verify(domainService).bootChargingStation(CHARGING_STATION_ID, PROTOCOL, new AttributeMap<String, String>(), ADD_ON_IDENTITY); verify(chargingStationRepository).createOrUpdate(new ChargingStation(CHARGING_STATION_ID.getId())); }
@Override public void onSuccess(Object o) { chargingStationRepository.createOrUpdate(new ChargingStation(chargingStationId.getId())); domainService.bootChargingStation(chargingStationId, protocol, attributes, addOnIdentity); }
CreateChargingStationCommandCallback implements CommandCallback<Object> { @Override public void onSuccess(Object o) { chargingStationRepository.createOrUpdate(new ChargingStation(chargingStationId.getId())); domainService.bootChargingStation(chargingStationId, protocol, attributes, addOnIdentity); } }
CreateChargingStationCommandCallback implements CommandCallback<Object> { @Override public void onSuccess(Object o) { chargingStationRepository.createOrUpdate(new ChargingStation(chargingStationId.getId())); domainService.bootChargingStation(chargingStationId, protocol, attributes, addOnIdentity); } CreateChargingStationCommandCallback(ChargingStationId chargingStationId, String protocol, AttributeMap<String, String> attributes,
                                                AddOnIdentity addOnIdentity, ChargingStationRepository chargingStationRepository, DomainService domainService); }
CreateChargingStationCommandCallback implements CommandCallback<Object> { @Override public void onSuccess(Object o) { chargingStationRepository.createOrUpdate(new ChargingStation(chargingStationId.getId())); domainService.bootChargingStation(chargingStationId, protocol, attributes, addOnIdentity); } CreateChargingStationCommandCallback(ChargingStationId chargingStationId, String protocol, AttributeMap<String, String> attributes,
                                                AddOnIdentity addOnIdentity, ChargingStationRepository chargingStationRepository, DomainService domainService); @Override void onSuccess(Object o); @Override void onFailure(Throwable throwable); }
CreateChargingStationCommandCallback implements CommandCallback<Object> { @Override public void onSuccess(Object o) { chargingStationRepository.createOrUpdate(new ChargingStation(chargingStationId.getId())); domainService.bootChargingStation(chargingStationId, protocol, attributes, addOnIdentity); } CreateChargingStationCommandCallback(ChargingStationId chargingStationId, String protocol, AttributeMap<String, String> attributes,
                                                AddOnIdentity addOnIdentity, ChargingStationRepository chargingStationRepository, DomainService domainService); @Override void onSuccess(Object o); @Override void onFailure(Throwable throwable);  }