Examples of Customer


Examples of org.jboss.tutorial.secondary.bean.Customer

      System.out.println("Create Bill Burke and Monica Smith");
      dao.create("Bill", "Burke", "1 Boston Road", "Boston", "MA", "02115");
      int moId = dao.create("Monica", "Smith", "1 Boston Road", "Boston", "MA", "02115");

      System.out.println("Bill and Monica get married");
      Customer monica = dao.find(moId);
      monica.setLast("Burke");
      dao.merge(monica);

      System.out.println("Get all the Burkes");
      List burkes = dao.findByLastName("Burke");
      System.out.println("There are now " + burkes.size() + " Burkes");
View Full Code Here

Examples of org.jibx.ws.soap.testdata.basic.Customer

     * @throws Throwable
     */
    public void testCallUnmarshalsSOAPResponse() throws Throwable {
        StubbedChannel.setInput(TestObjects.RESPONSE_SOAP);

        Customer result = invokeCall();

        assertEquals("Response Object:", TestObjects.RESPONSE_OBJECT, result);
    }
View Full Code Here

Examples of org.jinq.jpa.test.entities.Customer

      this.em = em;
   }
  
   private Customer createCustomer(String name, String country, int debt, int salary)
   {
      Customer c = new Customer();
      c.setName(name);
      c.setDebt(debt);
      c.setSalary(salary);
      c.setCountry(country);
      return c;
   }
View Full Code Here

Examples of org.milyn.javabean.performance.model.Customer

    /* (non-Javadoc)
     * @see freemarker.template.TemplateSequenceModel#get(int)
     */
    public TemplateModel get(int nmb) throws TemplateModelException {
     
      Customer c = new Customer();
     
      c.person = new Person();
      c.person.surname = "surname-" + nmb;
      c.person.firstname = "firstname-" + nmb;
      c.person.gender = (nmb % 2 == 0)? "m" : "f";
View Full Code Here

Examples of org.mule.example.loanbroker.messages.Customer

    @Override
    public void testLotsOfLoanRequests() throws Exception
    {
        final MuleClient client = muleContext.getClient();
        Customer c = new Customer("Ross Mason", 1234);
        CustomerQuoteRequest request = new CustomerQuoteRequest(c, 100000, 48);

        for (int i = 0; i < getNumberOfRequests(); i++)
        {
            client.dispatch("CustomerRequests", request, null);
View Full Code Here

Examples of org.mule.example.loanbroker.model.Customer

    public void testLoanBrokerMuleClient() throws Exception
    {
        muleContext.getRegistry().registerObject("streamToObjectTransformer", new ByteArrayToObject());
        MuleClient client = new MuleClient(muleContext);
        Customer c = new Customer("Ross Mason", 1234);
        CustomerQuoteRequest request = new CustomerQuoteRequest(c, 100000, 48);
        MuleMessage result = client.send("http://localhost:11080?responseTransformers=streamToObjectTransformer", request, null);
        assertNotNull("Result is null", result);
        assertFalse("Result is null", result.getPayload() instanceof NullPayload);
        assertTrue("Result should be LoanQuote but is " + result.getPayload().getClass().getName(),
View Full Code Here

Examples of org.multibit.mbm.client.domain.model.model.Customer

    // Use Alice for Customer access
    User publicUser = setUpPublicHmacAuthenticator();
    publicUser.setId(1L);

    Customer customer = publicUser.getCustomer();
    customer.setId(1L);

    // Configure the Cart with Items
    Cart customerCart = customer.getCart();
    customerCart.setId(1L);

    Item book1 = DatabaseLoader.buildBookItemCryptonomicon();
    book1.setId(1L);
    Item book2 = DatabaseLoader.buildBookItemQuantumThief();
View Full Code Here

Examples of org.optaplanner.examples.vehiclerouting.domain.Customer

            readConstantLine("DEMAND_SECTION");
            List<Customer> customerList = new ArrayList<Customer>(customerListSize);
            for (int i = 0; i < customerListSize; i++) {
                String line = bufferedReader.readLine();
                String[] lineTokens = splitBySpacesOrTabs(line.trim(), 2);
                Customer customer = new Customer();
                long id = Long.parseLong(lineTokens[0]);
                customer.setId(id);
                Location location = locationMap.get(id);
                if (location == null) {
                    throw new IllegalArgumentException("The customer with id (" + id
                            + ") has no location (" + location + ").");
                }
                customer.setLocation(location);
                int demand = Integer.parseInt(lineTokens[1]);
                customer.setDemand(demand);
                // Notice that we leave the PlanningVariable properties on null
                // Do not add a customer that has no demand
                if (demand != 0) {
                    customerList.add(customer);
                }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.entity.customer.Customer

        }
        entityManager.flush();

        // Creates the customer.
        for (int i = 0; i < strDescriptionValues.length / 2; i++) {
            Customer customer = new Customer();
            customer.setId(i);
            customer.setName(strDescriptionValues[i]);
            // inserts the address reference. The address has teh same primary
            // key that the customer.
            customer.setAddress(entityManager.getReference(Address.class, new Long(i)));
            // inserts the orders. Each customer has 2 orders.
            List<ProductOrder> orders = new ArrayList<ProductOrder>();
            orders.add(entityManager.getReference(ProductOrder.class, new Long(i)));
            orders.add(entityManager.getReference(ProductOrder.class, new Long(i + (NUMBER_OF_ORDERS / 2))));
            customer.setOrders(orders);
            entityManager.persist(customer);
        }
        entityManager.flush();
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.demo.ancient.demo.invoice.model.Customer

    return "Simple Advertising Demo";
  }

  private AdvertisingTableModel createDataModel()
  {
    final Customer customer =
        new Customer("Will", "Snowman", "Mr.", "12 Federal Plaza",
            "12346", "AnOtherTown", "Lilliput");
    final Advertising ad = new Advertising(customer, new Date(), "A-000-0123");

    final Article mainboard = new Article("MB.A02", "ZUSE Z0001 Mainboard", 1299.50f);
    final Article hardDisk = new Article
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.