@Test public void getSuccess() throws Exception { final HashMap<String, Serializable> formData = new HashMap<String, Serializable>(); formData.put("orgParent", "FACE"); GroupCreator sut = new GroupCreator(groupMapperMock, personMapperMock, getSystemAdminIdsMapper, followStrategyMock, getSystemSettingsMapper); Assert.assertNotNull(sut.get(taskHandlerActionContext, formData)); context.assertIsSatisfied(); }
@Override public DomainGroup get(final TaskHandlerActionContext<PrincipalActionContext> inActionContext, final Map<String, Serializable> inFields) { DomainGroup group = new DomainGroup(); StreamScope groupScope = new StreamScope(ScopeType.GROUP, (String) inFields.get("shortName")); group.setStreamScope(groupScope); group.setCapabilities(new ArrayList<BackgroundItem>()); return group; }
GroupCreator extends GroupPersister { @Override public DomainGroup get(final TaskHandlerActionContext<PrincipalActionContext> inActionContext, final Map<String, Serializable> inFields) { DomainGroup group = new DomainGroup(); StreamScope groupScope = new StreamScope(ScopeType.GROUP, (String) inFields.get("shortName")); group.setStreamScope(groupScope); group.setCapabilities(new ArrayList<BackgroundItem>()); return group; } }
GroupCreator extends GroupPersister { @Override public DomainGroup get(final TaskHandlerActionContext<PrincipalActionContext> inActionContext, final Map<String, Serializable> inFields) { DomainGroup group = new DomainGroup(); StreamScope groupScope = new StreamScope(ScopeType.GROUP, (String) inFields.get("shortName")); group.setStreamScope(groupScope); group.setCapabilities(new ArrayList<BackgroundItem>()); return group; } GroupCreator(final DomainGroupMapper inGroupMapper, final PersonMapper inPersonMapper,
            final DomainMapper<Serializable, List<Long>> inGetSystemAdministratorIdsMapper,
            final TaskHandlerExecutionStrategy inFollowStrategy,
            final DomainMapper<MapperRequest, SystemSettings> inGetSystemSettingsMapper); }
GroupCreator extends GroupPersister { @Override public DomainGroup get(final TaskHandlerActionContext<PrincipalActionContext> inActionContext, final Map<String, Serializable> inFields) { DomainGroup group = new DomainGroup(); StreamScope groupScope = new StreamScope(ScopeType.GROUP, (String) inFields.get("shortName")); group.setStreamScope(groupScope); group.setCapabilities(new ArrayList<BackgroundItem>()); return group; } GroupCreator(final DomainGroupMapper inGroupMapper, final PersonMapper inPersonMapper,
            final DomainMapper<Serializable, List<Long>> inGetSystemAdministratorIdsMapper,
            final TaskHandlerExecutionStrategy inFollowStrategy,
            final DomainMapper<MapperRequest, SystemSettings> inGetSystemSettingsMapper); @Override DomainGroup get(final TaskHandlerActionContext<PrincipalActionContext> inActionContext,
            final Map<String, Serializable> inFields); @Override void persist(final TaskHandlerActionContext<PrincipalActionContext> inActionContext,
            final Map<String, Serializable> inFields, final DomainGroup inGroup); }
GroupCreator extends GroupPersister { @Override public DomainGroup get(final TaskHandlerActionContext<PrincipalActionContext> inActionContext, final Map<String, Serializable> inFields) { DomainGroup group = new DomainGroup(); StreamScope groupScope = new StreamScope(ScopeType.GROUP, (String) inFields.get("shortName")); group.setStreamScope(groupScope); group.setCapabilities(new ArrayList<BackgroundItem>()); return group; } GroupCreator(final DomainGroupMapper inGroupMapper, final PersonMapper inPersonMapper,
            final DomainMapper<Serializable, List<Long>> inGetSystemAdministratorIdsMapper,
            final TaskHandlerExecutionStrategy inFollowStrategy,
            final DomainMapper<MapperRequest, SystemSettings> inGetSystemSettingsMapper); @Override DomainGroup get(final TaskHandlerActionContext<PrincipalActionContext> inActionContext,
            final Map<String, Serializable> inFields); @Override void persist(final TaskHandlerActionContext<PrincipalActionContext> inActionContext,
            final Map<String, Serializable> inFields, final DomainGroup inGroup);  }