public Void execute() throws Throwable { type.removeProperty(modelName + ":" + propertyQName.getLocalName()); CompiledModel compiledModel = model.compile(dictionaryDAO, namespaceDAO, true); modelValidator.validateModel(compiledModel); return null; } };
modelValidator.validateModel(compiledModel);
modelValidator.validateModel(compiledModel);
public Void execute() throws Throwable { type.removeProperty(modelName + ":" + propertyQName.getLocalName()); CompiledModel compiledModel = model.compile(dictionaryDAO, namespaceDAO, true); try { modelValidator.validateModel(compiledModel); fail("Property delete should have failed"); } catch(ModelInUseException e) { System.out.println("help"); // ok } return null; } };
modelValidator.validateModel(compiledModel);