Package person

Examples of person.Person


import edu.avans.aei.ivh5.rschelli.week1.person.Person;

public class PersonTest extends TestCase {
    public void testTest() {
        Person person = new Person("testname1");
        assertEquals("testname1", person.getName());
        person.setName("testname2");
        assertEquals("testname2", person.getName());
    }
View Full Code Here


        person.setName("testname2");
        assertEquals("testname2", person.getName());
    }

    public void testMainProperty() throws IOException {
        assertEquals("mainValue", new Person("test").readProperty());
    }
View Full Code Here

    // Configure logging. See ..\log\prakticum.log for file output.
    PropertyConfigurator.configure("../ivh5.logconf");

    logger.debug("Week 1 Main starting --------");
    Person p = new Person("Karel Appel");
   
    // Implement the Person.toString() method to change this behavior!
    logger.debug("Nieuwe persoon: " + p.toString());

  }
View Full Code Here

      result = person.lifeHistory.search(low, high);

      for (SearcherListener w : this.listeners
          .getListeners(SearcherListener.class))
      {
        w.foundElement(new FoundElementEvent(this, new Person(person
            .getFirstName(), person.getLastName(), result)));
      }
     
      this.runningState = false;
    }
View Full Code Here

    }
  }

  public Person getResult()
  {
    return new Person(person.getFirstName(), person.getLastName(), result);
  }
View Full Code Here

  /**
   * Save clicked action handler
   */
  private void saveButton_Clicked()
  {
    Person p = null;

    try
    {
      p = new Person(firstNameTextField.getText(), lastNameTextField.getText(),
          new MileStone(Integer.parseInt(fromYearTextField.getText()),
              Integer.parseInt(toYearTextField.getText()),
              new MileStonePlace(mileStonePlaceComboBox.getSelectedItem().toString()),
              mileStoneComboBox.getSelectedItem().toString())
      );
      caller.setEnabled(true);
      this.dispose();
    }
    catch (NumberFormatException e)
    {
      JOptionPane.showMessageDialog(this, "Bad year input");
    }
    catch (Exception e)
    {
      JOptionPane.showMessageDialog(this, e.getMessage());
    }
    finally
    {
      if (p != null)
      {
        System.out.println(p.toString());
        caller.addPerson(p);
      }
     
    }
  }
View Full Code Here

   */
  public void searchListSearchByInterval(int low, int high)
  {
    Vector<MileStone> result = new Vector<MileStone>();
    SearchThread job;
    Person p;
   
    IntegratorThread integrator = new IntegratorThread();
    pool.execute(integrator);
   
    for (int i = 0 ; i < vipComboBox.getItemCount() ; i++)
View Full Code Here

TOP

Related Classes of person.Person

Copyright © 2018 www.massapicom. 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.