Package edu.avans.aei.ivh5.rschelli.week1.main

Examples of edu.avans.aei.ivh5.rschelli.week1.main.Main


import edu.avans.aei.ivh5.rschelli.persistency.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());
   
    PersonList personList = new PersonList();
    personList.addPerson(p);
    personList.addPerson(new Person("Robin Schellius"));
    personList.addPerson(new Person("Jan Montizaan"));
   
    // Implement the Person.toString() method to change this behavior!
    logger.debug("Personenlijst: " + personList.toString());
   
View Full Code Here

    Person p = new Person("Karel Appel");
   
    // Implement the Person.toString() method to change this behavior!
    logger.debug("Nieuwe persoon: " + p.toString());
   
    PersonList personList = new PersonList();
    personList.addPerson(p);
    personList.addPerson(new Person("Robin Schellius"));
    personList.addPerson(new Person("Jan Montizaan"));
   
    // Implement the Person.toString() method to change this behavior!
    logger.debug("Personenlijst: " + personList.toString());
   

  }
View Full Code Here

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

TOP

Related Classes of edu.avans.aei.ivh5.rschelli.week1.main.Main

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.