use of pl.edu.icm.unity.types.I18nString in project furms by unity-idm.
the class UnitySiteGroupDAOTest method shouldGetMetaInfoAboutSite.
@Test
void shouldGetMetaInfoAboutSite() {
// given
String id = UUID.randomUUID().toString();
Group group = new Group("/path/" + id);
group.setDisplayedName(new I18nString("test"));
when(unityClient.get(contains(id), eq(Group.class))).thenReturn(group);
// when
Optional<Site> site = unitySiteWebClient.get(id);
// then
assertThat(site).isPresent();
assertThat(site.get().getId()).isEqualTo(id);
assertThat(site.get().getName()).isEqualTo("test");
}
Aggregations