@Test public void testGetStreamScope() { context.checking(new Expectations() { { oneOf(activityDTOMock).getDestinationStream(); will(returnValue(streamEntityDTOMock)); oneOf(streamEntityDTOMock).getUniqueIdentifier(); will(returnValue("ui")); oneOf(streamResourceByUniqueKeyMapper).execute(with(any(SharedResourceRequest.class))); will(returnValue(sharedResourceMock)); oneOf(sharedResourceMock).getStreamScope(); will(returnValue(streamScopeMock)); } }); sut.getStreamScope(activityDTOMock); context.assertIsSatisfied(); }
@Override public StreamScope getStreamScope(final ActivityDTO inActivityDTO) { return streamResourceByUniqueKeyMapper.execute( new SharedResourceRequest(inActivityDTO.getDestinationStream().getUniqueIdentifier(), null)) .getStreamScope(); }
ResourceRecipientRetriever implements RecipientRetriever { @Override public StreamScope getStreamScope(final ActivityDTO inActivityDTO) { return streamResourceByUniqueKeyMapper.execute( new SharedResourceRequest(inActivityDTO.getDestinationStream().getUniqueIdentifier(), null)) .getStreamScope(); } }
ResourceRecipientRetriever implements RecipientRetriever { @Override public StreamScope getStreamScope(final ActivityDTO inActivityDTO) { return streamResourceByUniqueKeyMapper.execute( new SharedResourceRequest(inActivityDTO.getDestinationStream().getUniqueIdentifier(), null)) .getStreamScope(); } ResourceRecipientRetriever(
            final DomainMapper<SharedResourceRequest, SharedResource> inStreamResourceByUniqueKeyMapper); }
ResourceRecipientRetriever implements RecipientRetriever { @Override public StreamScope getStreamScope(final ActivityDTO inActivityDTO) { return streamResourceByUniqueKeyMapper.execute( new SharedResourceRequest(inActivityDTO.getDestinationStream().getUniqueIdentifier(), null)) .getStreamScope(); } ResourceRecipientRetriever(
            final DomainMapper<SharedResourceRequest, SharedResource> inStreamResourceByUniqueKeyMapper); @Override StreamScope getStreamScope(final ActivityDTO inActivityDTO); @Override Boolean isDestinationStreamPublic(final ActivityDTO inActivityDTO); }
ResourceRecipientRetriever implements RecipientRetriever { @Override public StreamScope getStreamScope(final ActivityDTO inActivityDTO) { return streamResourceByUniqueKeyMapper.execute( new SharedResourceRequest(inActivityDTO.getDestinationStream().getUniqueIdentifier(), null)) .getStreamScope(); } ResourceRecipientRetriever(
            final DomainMapper<SharedResourceRequest, SharedResource> inStreamResourceByUniqueKeyMapper); @Override StreamScope getStreamScope(final ActivityDTO inActivityDTO); @Override Boolean isDestinationStreamPublic(final ActivityDTO inActivityDTO);  }