Package team

Examples of team.Person


    @Parameterized.Parameters(name = "{0}") // {0} = toString() of object
    public static java.util.Collection<Object[]> generateData() {

        ArrayList<Person> persons = new ArrayList<>();
        persons.add(new Person("aaa", new BigDecimal(1.1), "soccer", "jumping"));
        persons.add(new Person("bbbb", new BigDecimal(2.56), "running"));
        persons.add(new Person("cccc", new BigDecimal(2.91)));
        persons.add(new Person("ddddd", new BigDecimal(8.39), "flying", "running"));

        return Arrays.asList(new Object[][]{
                {new OriginalTeam(persons)},
                {new team.LambdaTeam(persons)},
        });
View Full Code Here


        assertThat(totalNumberOfHobbies, equalTo(5));
    }

    @Test
    public void shouldReturnPersonWithMostHobbies() {
        Person personWithMostHobbies = team.getPersonWithMostHobbies();
        assertThat(personWithMostHobbies.getName(), equalTo("aaa"));
    }
View Full Code Here

TOP

Related Classes of team.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.