Search in sources :

Example 6 with Members

use of com.google.api.services.directory.model.Members in project perun by CESNET.

the class ExtSourceGoogleTest method fillInMemberList.

private Members fillInMemberList() {
    List<Member> memberList = new ArrayList<>();
    Member member = new Member();
    member.setId("1");
    member.setEmail("peter@parker.sm");
    memberList.add(member);
    member = new Member();
    member.setId("2");
    member.setEmail("mj@parker.sm");
    memberList.add(member);
    Members members = new Members();
    members.setMembers(memberList);
    return members;
}
Also used : ArrayList(java.util.ArrayList) Member(com.google.api.services.directory.model.Member) Members(com.google.api.services.directory.model.Members)

Aggregations

Members (com.google.api.services.directory.model.Members)6 Member (com.google.api.services.directory.model.Member)5 ArrayList (java.util.ArrayList)5 IOException (java.io.IOException)4 HashMap (java.util.HashMap)4 Map (java.util.Map)4 Directory (com.google.api.services.directory.Directory)1 Before (org.junit.Before)1