public Void execute() throws Throwable { if(modelValidator.canDeleteModel(modelQName)) { fail("Model delete should have failed"); } return null; } };
modelValidator.validateModel(compiledModel); if (!modelValidator.canDeleteModel(modelName))
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); if (!modelValidator.canDeleteModel(modelName))
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; } };
public Void execute() throws Throwable { if(!modelValidator.canDeleteModel(modelQName)) { fail("Model delete should have succeeded"); } return null; } };
modelValidator.validateModel(compiledModel);
public Void execute() throws Throwable { if(modelValidator.canDeleteModel(modelQName)) { fail("Model delete should have failed"); } return null; } };
if (!modelValidator.canDeleteModel(modelName))
if (!modelValidator.canDeleteModel(modelName))