public void testCreateWaveletServiceThrowsOnInvalidParticipant() throws Exception { when(waveletData.getParticipants()).thenReturn(Collections.singletonList(MALFORMED_ADDRESS)); try { service.execute(operation, context, ALEX); fail("Expected InvalidRequestException"); } catch (InvalidRequestException e) { // expected } } }
public void testCreateWaveletServiceThrowsOnInvalidParticipant() throws Exception { when(waveletData.getParticipants()).thenReturn(Collections.singletonList(MALFORMED_ADDRESS)); try { service.execute(operation, context, ALEX); fail("Expected InvalidRequestException"); } catch (InvalidRequestException e) { // expected } } }
public WaveletData(WaveletData wavelet) { this.creationTime = wavelet.getCreationTime(); this.creator = wavelet.getCreator(); this.lastModifiedTime = wavelet.getLastModifiedTime(); this.participants = wavelet.getParticipants(); this.participantRoles = new HashMap<String, String>(wavelet.getParticipantRoles()); this.rootBlipId = wavelet.getRootBlipId(); this.title = wavelet.getTitle(); this.version = wavelet.getVersion(); this.waveId = wavelet.getWaveId(); this.waveletId = wavelet.getWaveletId(); this.dataDocuments = new HashMap<String, String>(wavelet.getDataDocuments()); this.tags = new ArrayList<String>(wavelet.getTags()); }
Set<String> participants = new LinkedHashSet<String>(waveletData.getParticipants()); Set<String> tags = new LinkedHashSet<String>(waveletData.getTags()); Map<String, String> dataDocuments = waveletData.getDataDocuments();
public void testCreateWaveletService() throws Exception { when(waveletData.getParticipants()).thenReturn(Collections.singletonList(BOB.getAddress()));
public void testCreateWaveletService() throws Exception { when(waveletData.getParticipants()).thenReturn(Collections.singletonList(BOB.getAddress()));
for (String address : waveletData.getParticipants()) { try { participants.add(ParticipantId.of(address));