Package za.co.javajoe.model

Examples of za.co.javajoe.model.Person


    public JustArraysExtended() {
        intializeNamesIntoList();
    }

    private void intializeNamesIntoList() {
        Person temp = new Person();

        temp.setId(1);
        temp.setAge(50);
        temp.setName("mackie");
        temp.setSurname("makgatho");
        temp.setRace("darkie");
        personList.add(temp);

        System.out.println(personList.size());

View Full Code Here



   @Test
    public void testGetPersonNameByIndex() throws Exception {

        Person tempPerson=justArraysExtended.getPersonObjectNameByIndex(1);
        String name =tempPerson.getName();

        System.out.println(name);

        assertThat(tempPerson, notNullValue());
        assertThat(justArraysExtended.getPersonObjectNameByIndex(1), equalTo(tempPerson));
View Full Code Here

TOP

Related Classes of za.co.javajoe.model.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.