use of edu.stanford.bmir.protege.web.shared.itemlist.GetPersonIdItemsResult in project webprotege by protegeproject.
the class GetPersonIdItemsActionHandler_TestCase method shouldOnlyMatchExact.
@Test
public void shouldOnlyMatchExact() {
when(action.getItemNames()).thenReturn(Arrays.asList("John Smith"));
GetPersonIdItemsResult result = actionHandler.execute(action, mock(ExecutionContext.class));
assertThat(result.getItems(), hasItems(new PersonId(johnSmith_UpperCase.getUserName())));
}
Aggregations