public void testFetchProfilesServiceWorks() throws InvalidRequestException { service.execute(operation, context, ParticipantId.ofUnsafe(ADDRESS)); verify(context).constructResponse(eq(operation), argThat(matchesFetchResult(ADDRESS, NAME, PROFILE_URL, IMAGE_URL))); }
public void testFetchProfilesServiceWorks() throws InvalidRequestException { service.execute(operation, context, ParticipantId.ofUnsafe(ADDRESS)); verify(context).constructResponse(eq(operation), argThat(matchesFetchResult(ADDRESS, NAME, PROFILE_URL, IMAGE_URL))); }
public void testSimpleProfilesFetcherWorks() throws InvalidRequestException { service = new FetchProfilesService(FetchProfilesService.ProfilesFetcher.SIMPLE_PROFILES_FETCHER); service.execute(operation, context, ParticipantId.ofUnsafe(ADDRESS)); verify(context).constructResponse(eq(operation), argThat(matchesFetchResult(ADDRESS, NAME, PROFILE_URL, IMAGE_URL))); }
public void testSimpleProfilesFetcherWorks() throws InvalidRequestException { service = new FetchProfilesService(FetchProfilesService.ProfilesFetcher.SIMPLE_PROFILES_FETCHER); service.execute(operation, context, ParticipantId.ofUnsafe(ADDRESS)); verify(context).constructResponse(eq(operation), argThat(matchesFetchResult(ADDRESS, NAME, PROFILE_URL, IMAGE_URL))); }