@Override protected StagedModel addStagedModel( Group group, Map<String, List<StagedModel>> dependentStagedModelsMap) throws Exception { List<StagedModel> dependentStagedModels = dependentStagedModelsMap.get(MDRRuleGroup.class.getName()); MDRRuleGroup ruleGroup = (MDRRuleGroup) dependentStagedModels.get(0); return MDRTestUtil.addRuleGroupInstance( group.getGroupId(), Layout.class.getName(), layout.getPlid(), ruleGroup.getRuleGroupId()); }
@Override protected Map<String, List<StagedModel>> addDependentStagedModelsMap(Group group) throws Exception { Map<String, List<StagedModel>> dependentStagedModelsMap = new HashMap<String, List<StagedModel>>(); MDRRuleGroup ruleGroup = MDRTestUtil.addRuleGroup(group.getGroupId()); addDependentStagedModel(dependentStagedModelsMap, MDRRuleGroup.class, ruleGroup); return dependentStagedModelsMap; }