@Test public void checkFindModelElementByEdmItemReturnsNull() { assertNull(cut.findModelElementByEdmItem("Willi", new HashMap<>())); }
protected IntermediateModelElement findModelElementByEdmItem(final String edmEntityItemName, final Map<String, ? extends IntermediateModelElement> buffer) { for (final Entry<String, ?> bufferItem : buffer.entrySet()) { final IntermediateModelElement modelElement = (IntermediateModelElement) bufferItem.getValue(); if (edmEntityItemName.equals(modelElement.getExternalName())) { return modelElement; } } return null; }
IntermediateModelElement implements IntermediateModelItemAccess { protected IntermediateModelElement findModelElementByEdmItem(final String edmEntityItemName, final Map<String, ? extends IntermediateModelElement> buffer) { for (final Entry<String, ?> bufferItem : buffer.entrySet()) { final IntermediateModelElement modelElement = (IntermediateModelElement) bufferItem.getValue(); if (edmEntityItemName.equals(modelElement.getExternalName())) { return modelElement; } } return null; } }
IntermediateModelElement implements IntermediateModelItemAccess { protected IntermediateModelElement findModelElementByEdmItem(final String edmEntityItemName, final Map<String, ? extends IntermediateModelElement> buffer) { for (final Entry<String, ?> bufferItem : buffer.entrySet()) { final IntermediateModelElement modelElement = (IntermediateModelElement) bufferItem.getValue(); if (edmEntityItemName.equals(modelElement.getExternalName())) { return modelElement; } } return null; } IntermediateModelElement(final JPAEdmNameBuilder nameBuilder, final String internalName); }
IntermediateModelElement implements IntermediateModelItemAccess { protected IntermediateModelElement findModelElementByEdmItem(final String edmEntityItemName, final Map<String, ? extends IntermediateModelElement> buffer) { for (final Entry<String, ?> bufferItem : buffer.entrySet()) { final IntermediateModelElement modelElement = (IntermediateModelElement) bufferItem.getValue(); if (edmEntityItemName.equals(modelElement.getExternalName())) { return modelElement; } } return null; } IntermediateModelElement(final JPAEdmNameBuilder nameBuilder, final String internalName); @Override String getExternalName(); @Override FullQualifiedName getExternalFQN(); @Override String getInternalName(); @Override boolean ignore(); @Override void setExternalName(final String externalName); @Override void setIgnore(final boolean ignore); @Override String toString(); }
IntermediateModelElement implements IntermediateModelItemAccess { protected IntermediateModelElement findModelElementByEdmItem(final String edmEntityItemName, final Map<String, ? extends IntermediateModelElement> buffer) { for (final Entry<String, ?> bufferItem : buffer.entrySet()) { final IntermediateModelElement modelElement = (IntermediateModelElement) bufferItem.getValue(); if (edmEntityItemName.equals(modelElement.getExternalName())) { return modelElement; } } return null; } IntermediateModelElement(final JPAEdmNameBuilder nameBuilder, final String internalName); @Override String getExternalName(); @Override FullQualifiedName getExternalFQN(); @Override String getInternalName(); @Override boolean ignore(); @Override void setExternalName(final String externalName); @Override void setIgnore(final boolean ignore); @Override String toString();  }