use of edu.stanford.bmir.protege.web.shared.issues.mention.UserIdMention in project webprotege by protegeproject.
the class IssueBuilder_TestCase method shouldUpdateParticipantsOnBuild.
@Test
public void shouldUpdateParticipantsOnBuild() {
UserId participant = mock(UserId.class);
UserIdMention userIdMention = mock(UserIdMention.class);
when(userIdMention.getMentionedUserId()).thenReturn(Optional.of(participant));
when(parsedMention.getParsedMention()).thenReturn(userIdMention);
Issue issue = builder.build(mentionParser);
assertThat(issue.getParticipants(), hasItems(creator, participant));
}
Aggregations