Search in sources :

Example 1 with UserIdMention

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));
}
Also used : UserIdMention(edu.stanford.bmir.protege.web.shared.issues.mention.UserIdMention) UserId(edu.stanford.bmir.protege.web.shared.user.UserId) Test(org.junit.Test)

Aggregations

UserIdMention (edu.stanford.bmir.protege.web.shared.issues.mention.UserIdMention)1 UserId (edu.stanford.bmir.protege.web.shared.user.UserId)1 Test (org.junit.Test)1