use of org.finos.waltz.model.app_group.AppGroupEntry in project waltz by khartec.
the class AppGroupDaoTest method canAddOrgUnitsToGroups.
@Test
public void canAddOrgUnitsToGroups() throws InsufficientPrivelegeException {
Long gId = appGroupHelper.createAppGroupWithAppRefs("t3", asSet(r1));
appGroupOuDao.addOrgUnit(gId, raOu);
List<AppGroupEntry> ouEntries = appGroupOuDao.getEntriesForGroup(gId);
assertEquals(1, ouEntries.size());
AppGroupEntry entry = CollectionUtilities.first(ouEntries);
assertEquals(EntityKind.ORG_UNIT, entry.kind());
assertEquals(raOu, Long.valueOf(entry.id()));
}
use of org.finos.waltz.model.app_group.AppGroupEntry in project waltz by khartec.
the class AppGroupHarness method main.
public static void main(String[] args) throws InsufficientPrivelegeException {
System.out.println("--- start");
ApplicationIdSelectorFactory appSelectorFactory = new ApplicationIdSelectorFactory();
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
DSLContext dsl = ctx.getBean(DSLContext.class);
FavouritesService service = ctx.getBean(FavouritesService.class);
Collection<AppGroupEntry> appGroupEntries = service.addApplication("jessica.woodland-scott@db.com", 15792);
System.out.println("--- done");
}
Aggregations