@SuppressWarnings({ "unchecked", "rawtypes" }) @Test public void testBuildJPAEdmPropertyView() { SimpleProperty simpleProperty = new SimpleProperty(); JPAEdmPropertyView propertyView = EasyMock.createMock(JPAEdmPropertyView.class); JPAEdmEntityTypeView entityTypeView = EasyMock.createMock(JPAEdmEntityTypeView.class); EasyMock.expect(propertyView.getJPAAttribute()).andStubReturn(new JPAAttribute()); EasyMock.expect(propertyView.getJPAEdmEntityTypeView()).andStubReturn(entityTypeView); EasyMock.expect(propertyView.getJPAEdmMappingModelAccess()).andStubReturn(null); EasyMock.expect(propertyView.getEdmSimpleProperty()).andStubReturn(simpleProperty); EasyMock.replay(propertyView); JPAEdmNameBuilder.build(propertyView, false, false, false); assertEquals("Id", simpleProperty.getName()); }
public static FullQualifiedName build(final JPAEdmBaseView view, final String name) { FullQualifiedName fqName = new FullQualifiedName(buildNamespace(view), name); return fqName; }
JPAEdmNameBuilder { public static FullQualifiedName build(final JPAEdmBaseView view, final String name) { FullQualifiedName fqName = new FullQualifiedName(buildNamespace(view), name); return fqName; } }
JPAEdmNameBuilder { public static FullQualifiedName build(final JPAEdmBaseView view, final String name) { FullQualifiedName fqName = new FullQualifiedName(buildNamespace(view), name); return fqName; }  }
JPAEdmNameBuilder { public static FullQualifiedName build(final JPAEdmBaseView view, final String name) { FullQualifiedName fqName = new FullQualifiedName(buildNamespace(view), name); return fqName; }  static FullQualifiedName build(final JPAEdmBaseView view, final String name); static void build(final JPAEdmEntityTypeView view); static void build(final JPAEdmSchemaView view); static void build(final JPAEdmPropertyView view, final boolean isComplexMode,
      final boolean skipDefaultNaming, final boolean isForeignKey); static void build(final JPAEdmEntityContainerView view); static void build(final JPAEdmEntitySetView view, final JPAEdmEntityTypeView entityTypeView); static void build(final JPAEdmComplexType view); static void build(final JPAEdmComplexPropertyView complexView,
      final JPAEdmPropertyView propertyView, final boolean skipDefaultNaming); static void build(final JPAEdmComplexPropertyView complexView,
      final String parentComplexTypeName, final boolean skipDefaultNaming); static void build(final JPAEdmAssociationEndView assocaitionEndView,
      final JPAEdmEntityTypeView entityTypeView, final JPAEdmPropertyView propertyView); static void build(final JPAEdmAssociationView view, final int count); static void build(final JPAEdmAssociationSetView view); static void build(final JPAEdmAssociationView associationView,
      final JPAEdmPropertyView propertyView,
      final JPAEdmNavigationPropertyView navPropertyView, final boolean skipDefaultNaming, final int count); }
JPAEdmNameBuilder { public static FullQualifiedName build(final JPAEdmBaseView view, final String name) { FullQualifiedName fqName = new FullQualifiedName(buildNamespace(view), name); return fqName; }  static FullQualifiedName build(final JPAEdmBaseView view, final String name); static void build(final JPAEdmEntityTypeView view); static void build(final JPAEdmSchemaView view); static void build(final JPAEdmPropertyView view, final boolean isComplexMode,
      final boolean skipDefaultNaming, final boolean isForeignKey); static void build(final JPAEdmEntityContainerView view); static void build(final JPAEdmEntitySetView view, final JPAEdmEntityTypeView entityTypeView); static void build(final JPAEdmComplexType view); static void build(final JPAEdmComplexPropertyView complexView,
      final JPAEdmPropertyView propertyView, final boolean skipDefaultNaming); static void build(final JPAEdmComplexPropertyView complexView,
      final String parentComplexTypeName, final boolean skipDefaultNaming); static void build(final JPAEdmAssociationEndView assocaitionEndView,
      final JPAEdmEntityTypeView entityTypeView, final JPAEdmPropertyView propertyView); static void build(final JPAEdmAssociationView view, final int count); static void build(final JPAEdmAssociationSetView view); static void build(final JPAEdmAssociationView associationView,
      final JPAEdmPropertyView propertyView,
      final JPAEdmNavigationPropertyView navPropertyView, final boolean skipDefaultNaming, final int count);  }