| | |
| | | @DataProvider |
| | | public Object[][] enumrateManageObjectDefns() throws Exception { |
| | | TopCfgDefn topCfgDefn = TopCfgDefn.getInstance(); |
| | | List<AbstractManagedObjectDefinition<?,?>> allCfgDefns = |
| | | new ArrayList<AbstractManagedObjectDefinition<?,?>>(topCfgDefn.getAllChildren()); |
| | | List<AbstractManagedObjectDefinition<?,?>> allCfgDefns = new ArrayList<>(topCfgDefn.getAllChildren()); |
| | | |
| | | Object[][] params = new Object[allCfgDefns.size()][]; |
| | | for (int i = 0; i < params.length; i++) { |
| | |
| | | " is declared as mandatory in the schema.").append(EOL + EOL); |
| | | } |
| | | |
| | | Set<AttributeType> allowedAttributes = new HashSet<AttributeType>(mandatoryAttributes); |
| | | Set<AttributeType> allowedAttributes = new HashSet<>(mandatoryAttributes); |
| | | allowedAttributes.addAll(configObjectClass.getOptionalAttributeChain()); |
| | | if (!allowedAttributes.contains(attrType)) { |
| | | errors.append(propName + " property on config object " + objName + " has" + |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |