package teams.service.impl;
import java.util.ArrayList;
import java.util.List;
import teams.domain.ExternalGroup;
import teams.domain.ExternalGroupProvider;
import teams.service.VootClient;
public class VootClientMock implements VootClient {
@Override
public List<ExternalGroup> groups(String userId) {
List<ExternalGroup> groups = new ArrayList<>();
for (int i = 0; i < 11; i++) {
groups.add(createExternalGroup("name" + i));
}
return groups;
}
private ExternalGroup createExternalGroup(String name) {
return new ExternalGroup("urn:collab:group:example.org:" + name, name, "test description", new ExternalGroupProvider("org.example", "org.example"));
}
}