@SuppressWarnings({ "rawtypes", "unchecked" }) @Test public void testBuildJPAEdmComplexPropertyView() { JPAEdmComplexPropertyView complexPropertyView = EasyMock.createMock(JPAEdmComplexPropertyView.class); ComplexProperty complexProperty = new ComplexProperty(); EasyMock.expect(complexPropertyView.getEdmComplexProperty()).andStubReturn(complexProperty); ODataJPAContextImpl oDataJPAContext = new ODataJPAContextImpl(); JPAEdmMappingModelService mappingModelService = new JPAEdmMappingModelService(oDataJPAContext); EasyMock.expect(complexPropertyView.getJPAEdmMappingModelAccess()).andStubReturn(mappingModelService); JPAEdmPropertyView propertyView = EasyMock.createMock(JPAEdmPropertyView.class); JPAEdmEntityTypeView entityTypeView = EasyMock.createMock(JPAEdmEntityTypeView.class); EasyMock.expect(entityTypeView.getJPAEntityType()).andStubReturn(new JPAEntityType()); EasyMock.replay(entityTypeView); EasyMock.expect(propertyView.getJPAAttribute()).andStubReturn(new JPAAttribute()); EasyMock.expect(propertyView.getJPAEdmEntityTypeView()).andStubReturn(entityTypeView); EasyMock.replay(complexPropertyView); EasyMock.replay(propertyView); JPAEdmNameBuilder.build(complexPropertyView, propertyView, false); assertEquals("Id", complexPropertyView.getEdmComplexProperty().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);  }