Examples of AddressDto


Examples of com.tll.common.dto.test.AddressDto

      super(listHandler);
    }

    @Override
    protected AddressDto getDecoratedElement(Address elm) {
      return new AddressDto(Long.toString(elm.getId().longValue()), elm.getFirstName(), elm.getLastName(),
          elm.getAddress1(), elm.getAddress2(), elm.getCity(), elm.getProvince(), elm.getPostalCode());
    }
View Full Code Here

Examples of de.fhdw.ify208.ticketmaster.common.model.AddressDTO

  }

  @Test
  public void removeCustomerAddress() {
    CustomerDTO customer = _theCustomerManager.signOn("appelgriebsch", "1234");
    AddressDTO address = new AddressDTO();
    TypeCodeDTO tpCode = new TypeCodeDTO();
    tpCode.setName("Private");
    tpCode.setId(1);
    CountryDTO countryDTO = new CountryDTO();
    countryDTO.setIsoCode("TUR");
    address.setid(new Long(7));
    address.setAddressType(tpCode);
    address.setAddressLine("Mustetstrasse 7");
    address.setCityName("Musterstadt");
    address.setCountry(countryDTO);
    address.setDistrict("NRW");
    address.setZipCode("33397");
    address.setStreetName("Mustetstrasse 7");
    address.setMessage("TEST");
    BaseDTO result = _theCustomerManager.removeAddress(customer, address);
    Assert.assertTrue("Maintain address:",result.getReturncode() == 0);
  }
View Full Code Here

Examples of de.fhdw.ify208.ticketmaster.common.model.AddressDTO

  public void placeOrder() {
    // TODO Auto-generated method stub
    OrderDTO result = new OrderDTO();
    EventDTO event = new EventDTO();
    CustomerDTO customer = new CustomerDTO();
    AddressDTO shipaddress = new AddressDTO();
    AddressDTO billaddress = new AddressDTO();
    int quantity=1;
   
    event.setid(new Long(1));
    customer.setid(new Long(10));
    shipaddress.setid(new Long(7));
    billaddress.setid(new Long(7));
    result = _theOrderManager.placeOrder(event, customer, shipaddress, billaddress, quantity);
    Assert.assertTrue("Place order:",result.getReturncode() == 0);
   
    quantity=2;
    event.setid(new Long(2));
    customer.setid(new Long(10));
    shipaddress.setid(new Long(7));
    billaddress.setid(new Long(7));
    result = _theOrderManager.placeOrder(event, customer, shipaddress, billaddress, quantity);
    Assert.assertTrue("No tickets left:",result.getReturncode() != 0);
  }
View Full Code Here

Examples of de.fhdw.ify208.ticketmaster.common.model.AddressDTO

  }

  @Test
  public void maintainCustomerAddress() {
    CustomerDTO customer = _theCustomerManager.signOn("appelgriebsch", "1234");
    AddressDTO address = new AddressDTO();
    TypeCodeDTO tpCode = new TypeCodeDTO();
    tpCode.setName("Private");
    tpCode.setId(1);
    CountryDTO countryDTO = new CountryDTO();
    countryDTO.setIsoCode("TUR");
    address.setAddressType(tpCode);
    address.setAddressLine("Mustetstrasse 7");
    address.setCityName("Musterstadt");
    address.setCountry(countryDTO);
    address.setDistrict("NRW");
    address.setZipCode("33397");
    address.setStreetName("Mustetstrasse 7");
    address.setMessage("TEST");
    AddressDTO result = _theCustomerManager.maintainAddress(customer,address);
    Assert.assertTrue("Maintain address:",result.getReturncode() == 0);
  }
View Full Code Here

Examples of de.fhdw.ify208.ticketmaster.common.model.AddressDTO

  }

  @Test
  public void createEvent() {
    EventDTO event = new EventDTO();
    AddressDTO location = new AddressDTO();
    TypeCodeDTO tpCode = new TypeCodeDTO();
    TypeCodeDTO tpCode1 = new TypeCodeDTO();
    CountryDTO country = new CountryDTO();
    BaseDTO result = new BaseDTO();
    Date d1 = new Date(2011, 12, 31, 20, 0,0);
    Date d2 = new Date(2011, 12, 31, 21, 0,0);
    country.setIsoCode("TUR");
    tpCode.setId(1);
    tpCode.setDescription("Test");
    tpCode1.setId(1);
    location.setid(new Long(3));
    location.setAddressType(tpCode1);
    location.setCountry(country);
    location.setAddressLine("TEST MARK");
    location.setStreetName("TEST MARK");
    location.setZipCode("33333");
    location.setCityName("TEST MARK");
    location.setDistrict("NRW");
    event.setid(new Long(3));
    event.setAdUrl("Test");
    event.setDescription("TEST MARK");
    event.setLocation(location);
    event.setMaxNoOfTickets(20);
View Full Code Here

Examples of ma.glasnost.orika.test.community.issue25.modelB.AddressDTO

        assertTrue("An address was removed. In the merged DS this address does still exist.",
                   addressesFromPrototype.size() == 2);
       
        // land check
        List<AddressDTO> addressesAfterMerge = prototype.getAddressL();
        AddressDTO addressOne = addressesAfterMerge.get(0);
        AddressDTO addressTwo = addressesAfterMerge.get(1);

        assertTrue("Land after merge is wrong.", Character.valueOf('D').equals(addressOne.getLand()));
        assertTrue("Land after merge is wrong.", Character.valueOf('D').equals(addressTwo.getLand()));
    }
View Full Code Here

Examples of ma.glasnost.orika.test.community.issue25.modelB.AddressDTO

            manufacturingFacility.setAddresses(new ArrayList<Address>());
        List<Address> anschriften = manufacturingFacility.getAddresses();
        anschriften.add(vAnschrift);


        AddressDTO vAnschriftDTO = new AddressDTO();
        vAnschriftDTO.setComment(comment);
        vAnschriftDTO.setIdNumber(idNumber);
        vAnschriftDTO.setLand(land);
        vAnschriftDTO.setPostalcode(postalcode);
        vAnschriftDTO.setStreet(street);
       
        if(manufacturingFacilityDTS.getAddressL()==null){
            manufacturingFacilityDTS.setAddressL(new ArrayList<AddressDTO>());
        }
        List<AddressDTO> anschriftenDTO = manufacturingFacilityDTS.getAddressL();
View Full Code Here

Examples of ma.glasnost.orika.test.community.issue25.modelB.AddressDTO

      List<AddressDTO> dstAddressesDTO,
      MappingContext context) {
    Set<Long> savedIdNumbers = new HashSet<Long>(
        srcAddress.size());
    for (Address currentAddress : srcAddress) {
      AddressDTO foundAddressDTO = findEntity(dstAddressesDTO,
          currentAddress.getIdNumber());
      if (foundAddressDTO == null) {
        dstAddressesDTO.add(mapperFacade.map(currentAddress,
            AddressDTO.class, context));
      } else {
        mapperFacade.map(currentAddress, foundAddressDTO, context);
      }
      savedIdNumbers.add(currentAddress.getIdNumber());
    }
    for (Iterator<AddressDTO> iterator = dstAddressesDTO.iterator(); iterator
        .hasNext();) {
      AddressDTO vCurrentAnschriftDTO = iterator.next();
      if (!savedIdNumbers.contains(vCurrentAnschriftDTO
          .getIdNumber())) {
        iterator.remove();
      }
    }
    return dstAddressesDTO;
View Full Code Here

Examples of org.apache.camel.converter.dozer.dto.AddressDTO

    public static org.apache.camel.converter.dozer.model.Customer createModelCustomer() {
        return new org.apache.camel.converter.dozer.model.Customer("Bob", "Roberts", new Address("12345", "1 main st"));
    }

    public static CustomerDTO createDtoCustomer() {
        return new CustomerDTO("Bob", "Roberts", new AddressDTO("12345", "1 main st"));
    }
View Full Code Here

Examples of org.axonframework.examples.addressbook.web.dto.AddressDTO

    private UpdateMessageProducerForFlex producer;

    @EventHandler
    public void handleAddressCreatedEvent(AddressRegisteredEvent event) {
        logger.debug("Received an event of type {}", event.getClass().getSimpleName());
        AddressDTO addressDTO = AddressDTO.createFrom(
                event.getAddress(), event.getContactId(), event.getType());
        producer.sendAddressUpdate(addressDTO);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.