@Test public void getVasRepresentationFilledChargingStationValidateReturnValue() { ChargingStation cs = VasSoapTestUtils.getConfiguredAndFilledChargingStation(); ChargePoint vasRepresentation = service.getVasRepresentation(cs); VasSoapTestUtils.compareChargingStationToVasRepresentation(cs, vasRepresentation); }
public ChargePoint getVasRepresentation(ChargingStation chargingStation) { ChargePoint chargePoint = new ChargePoint(); chargePoint.setAddress(chargingStation.getAddress()); chargePoint.getChargingCapabilities().addAll(getChargingCapabilities(chargingStation)); chargePoint.setChargingMode(getVasChargingMode(chargingStation.getChargeMode())); chargePoint.setCity(chargingStation.getCity()); chargePoint.setConnectors(chargingStation.getNumberOfEvses()); chargePoint.setConnectorsFree(chargingStation.getNumberOfFreeEvses()); chargePoint.getConnectorTypes().addAll(getConnectorTypes(chargingStation)); chargePoint.setCoordinates(getCoordinates(chargingStation)); chargePoint.setCountry(chargingStation.getCountry()); chargePoint.setHasFixedCable(chargingStation.isHasFixedCable()); chargePoint.setIsReservable(chargingStation.isReservable()); chargePoint.getOpeningPeriod().addAll(getOpeningPeriod(chargingStation)); chargePoint.setOperator(chargingStation.getOperator()); chargePoint.setPostalCode(chargingStation.getPostalCode()); chargePoint.setPublic(getPublic(chargingStation)); chargePoint.setRegion(chargingStation.getRegion()); chargePoint.setStatus(getStatus(chargingStation)); chargePoint.setUid(chargingStation.getId()); return chargePoint; }
VasConversionService { public ChargePoint getVasRepresentation(ChargingStation chargingStation) { ChargePoint chargePoint = new ChargePoint(); chargePoint.setAddress(chargingStation.getAddress()); chargePoint.getChargingCapabilities().addAll(getChargingCapabilities(chargingStation)); chargePoint.setChargingMode(getVasChargingMode(chargingStation.getChargeMode())); chargePoint.setCity(chargingStation.getCity()); chargePoint.setConnectors(chargingStation.getNumberOfEvses()); chargePoint.setConnectorsFree(chargingStation.getNumberOfFreeEvses()); chargePoint.getConnectorTypes().addAll(getConnectorTypes(chargingStation)); chargePoint.setCoordinates(getCoordinates(chargingStation)); chargePoint.setCountry(chargingStation.getCountry()); chargePoint.setHasFixedCable(chargingStation.isHasFixedCable()); chargePoint.setIsReservable(chargingStation.isReservable()); chargePoint.getOpeningPeriod().addAll(getOpeningPeriod(chargingStation)); chargePoint.setOperator(chargingStation.getOperator()); chargePoint.setPostalCode(chargingStation.getPostalCode()); chargePoint.setPublic(getPublic(chargingStation)); chargePoint.setRegion(chargingStation.getRegion()); chargePoint.setStatus(getStatus(chargingStation)); chargePoint.setUid(chargingStation.getId()); return chargePoint; } }
VasConversionService { public ChargePoint getVasRepresentation(ChargingStation chargingStation) { ChargePoint chargePoint = new ChargePoint(); chargePoint.setAddress(chargingStation.getAddress()); chargePoint.getChargingCapabilities().addAll(getChargingCapabilities(chargingStation)); chargePoint.setChargingMode(getVasChargingMode(chargingStation.getChargeMode())); chargePoint.setCity(chargingStation.getCity()); chargePoint.setConnectors(chargingStation.getNumberOfEvses()); chargePoint.setConnectorsFree(chargingStation.getNumberOfFreeEvses()); chargePoint.getConnectorTypes().addAll(getConnectorTypes(chargingStation)); chargePoint.setCoordinates(getCoordinates(chargingStation)); chargePoint.setCountry(chargingStation.getCountry()); chargePoint.setHasFixedCable(chargingStation.isHasFixedCable()); chargePoint.setIsReservable(chargingStation.isReservable()); chargePoint.getOpeningPeriod().addAll(getOpeningPeriod(chargingStation)); chargePoint.setOperator(chargingStation.getOperator()); chargePoint.setPostalCode(chargingStation.getPostalCode()); chargePoint.setPublic(getPublic(chargingStation)); chargePoint.setRegion(chargingStation.getRegion()); chargePoint.setStatus(getStatus(chargingStation)); chargePoint.setUid(chargingStation.getId()); return chargePoint; }  }
VasConversionService { public ChargePoint getVasRepresentation(ChargingStation chargingStation) { ChargePoint chargePoint = new ChargePoint(); chargePoint.setAddress(chargingStation.getAddress()); chargePoint.getChargingCapabilities().addAll(getChargingCapabilities(chargingStation)); chargePoint.setChargingMode(getVasChargingMode(chargingStation.getChargeMode())); chargePoint.setCity(chargingStation.getCity()); chargePoint.setConnectors(chargingStation.getNumberOfEvses()); chargePoint.setConnectorsFree(chargingStation.getNumberOfFreeEvses()); chargePoint.getConnectorTypes().addAll(getConnectorTypes(chargingStation)); chargePoint.setCoordinates(getCoordinates(chargingStation)); chargePoint.setCountry(chargingStation.getCountry()); chargePoint.setHasFixedCable(chargingStation.isHasFixedCable()); chargePoint.setIsReservable(chargingStation.isReservable()); chargePoint.getOpeningPeriod().addAll(getOpeningPeriod(chargingStation)); chargePoint.setOperator(chargingStation.getOperator()); chargePoint.setPostalCode(chargingStation.getPostalCode()); chargePoint.setPublic(getPublic(chargingStation)); chargePoint.setRegion(chargingStation.getRegion()); chargePoint.setStatus(getStatus(chargingStation)); chargePoint.setUid(chargingStation.getId()); return chargePoint; }  ChargePoint getVasRepresentation(ChargingStation chargingStation); List<io.motown.vas.v10.soap.schema.ChargingCapability> getChargingCapabilities(ChargingStation chargingStation); List<io.motown.vas.v10.soap.schema.ConnectorType> getConnectorTypes(ChargingStation chargingStation); Wgs84Coordinates getCoordinates(ChargingStation chargingStation); List<OpeningPeriod> getOpeningPeriod(ChargingStation chargingStation); Accessibility getPublic(ChargingStation chargingStation); ChargingMode getVasChargingMode(ChargeMode chargeMode); ChargePointStatus getStatus(ChargingStation chargingStation); }
VasConversionService { public ChargePoint getVasRepresentation(ChargingStation chargingStation) { ChargePoint chargePoint = new ChargePoint(); chargePoint.setAddress(chargingStation.getAddress()); chargePoint.getChargingCapabilities().addAll(getChargingCapabilities(chargingStation)); chargePoint.setChargingMode(getVasChargingMode(chargingStation.getChargeMode())); chargePoint.setCity(chargingStation.getCity()); chargePoint.setConnectors(chargingStation.getNumberOfEvses()); chargePoint.setConnectorsFree(chargingStation.getNumberOfFreeEvses()); chargePoint.getConnectorTypes().addAll(getConnectorTypes(chargingStation)); chargePoint.setCoordinates(getCoordinates(chargingStation)); chargePoint.setCountry(chargingStation.getCountry()); chargePoint.setHasFixedCable(chargingStation.isHasFixedCable()); chargePoint.setIsReservable(chargingStation.isReservable()); chargePoint.getOpeningPeriod().addAll(getOpeningPeriod(chargingStation)); chargePoint.setOperator(chargingStation.getOperator()); chargePoint.setPostalCode(chargingStation.getPostalCode()); chargePoint.setPublic(getPublic(chargingStation)); chargePoint.setRegion(chargingStation.getRegion()); chargePoint.setStatus(getStatus(chargingStation)); chargePoint.setUid(chargingStation.getId()); return chargePoint; }  ChargePoint getVasRepresentation(ChargingStation chargingStation); List<io.motown.vas.v10.soap.schema.ChargingCapability> getChargingCapabilities(ChargingStation chargingStation); List<io.motown.vas.v10.soap.schema.ConnectorType> getConnectorTypes(ChargingStation chargingStation); Wgs84Coordinates getCoordinates(ChargingStation chargingStation); List<OpeningPeriod> getOpeningPeriod(ChargingStation chargingStation); Accessibility getPublic(ChargingStation chargingStation); ChargingMode getVasChargingMode(ChargeMode chargeMode); ChargePointStatus getStatus(ChargingStation chargingStation);  }