Examples of Edm


Examples of org.apache.olingo.odata2.api.edm.Edm

  @Test
  public void dummy() throws Exception {}

  @Test
  public void testEdm() throws Exception {
    Edm edm = client.getEdm();
    assertNotNull(edm);
    assertNotNull(edm.getDefaultEntityContainer());
  }
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.Edm

public class EdmxProviderTest {

  @Test
  public void getElementsWithAlias() throws Exception {
    Edm edm = createEdm();
    assertNotNull(edm);

    assertNotNull(edm.getEntityType("Self", "Employee"));
    assertNotNull(edm.getEntityType("Self", "Room"));
    assertNotNull(edm.getEntityType("Self", "Manager"));
    assertNotNull(edm.getEntityType("Self", "Team"));
    assertNotNull(edm.getEntityType("Self", "Building"));

    assertNotNull(edm.getAssociation("Self", "BuildingRooms"));
    assertNotNull(edm.getAssociation("Self", "ManagerEmployees"));
    assertNotNull(edm.getAssociation("Self", "TeamEmployees"));
    assertNotNull(edm.getAssociation("Self", "RoomEmployees"));

    assertNotNull(edm.getComplexType("Self", "c_Location"));
    assertNotNull(edm.getComplexType("Self", "c_City"));
  }
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.Edm

    assertNotNull(edm.getComplexType("Self", "c_City"));
  }

  @Test
  public void annotationsAtSimpleProperty() throws Exception {
    Edm edm = createEdm();
    assertNotNull(edm);
    EdmProperty property = (EdmProperty) edm.getEntityType("Self", "Employee").getProperty("EmployeeName");
    assertNotNull(property);

    EdmAnnotations annotations = property.getAnnotations();
    assertNotNull(annotations);
    List<EdmAnnotationAttribute> annotationAttributes = annotations.getAnnotationAttributes();
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.Edm

    assertNull(annotationElements.get(0).getChildElements());
  }

  @Test
  public void nullAnnotationsAtEntityType() throws Exception {
    Edm edm = createEdm();
    assertNotNull(edm);
    EdmAnnotations annotations = edm.getEntityType("Self", "Employee").getAnnotations();
    checkNullAnnotations(annotations);
  }
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.Edm

    checkNullAnnotations(annotations);
  }

  @Test
  public void nullAnnotationsAtComplexType() throws Exception {
    Edm edm = createEdm();
    assertNotNull(edm);
    EdmAnnotations annotations = edm.getComplexType("Self", "c_Location").getAnnotations();
    checkNullAnnotations(annotations);
  }
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.Edm

    checkNullAnnotations(annotations);
  }

  @Test
  public void nullAnnotationsAtSimpleProperty() throws Exception {
    Edm edm = createEdm();
    assertNotNull(edm);
    EdmProperty property = (EdmProperty) edm.getEntityType("Self", "Employee").getProperty("RoomId");
    EdmAnnotations annotations = property.getAnnotations();
    checkNullAnnotations(annotations);
  }
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.Edm

    checkNullAnnotations(annotations);
  }

  @Test
  public void nullAnnotationsAtComplexProperty() throws Exception {
    Edm edm = createEdm();
    assertNotNull(edm);
    EdmProperty property = (EdmProperty) edm.getEntityType("Self", "Employee").getProperty("Location");
    EdmAnnotations annotations = property.getAnnotations();
    checkNullAnnotations(annotations);
  }
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.Edm

    checkNullAnnotations(annotations);
  }

  @Test
  public void nullAnnotationsAtAssociation() throws Exception {
    Edm edm = createEdm();
    assertNotNull(edm);
    EdmAnnotations annotations = edm.getAssociation("Self", "BuildingRooms").getAnnotations();
    checkNullAnnotations(annotations);
  }
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.Edm

    checkNullAnnotations(annotations);
  }

  @Test
  public void nullAnnotationsAtAssociationSet() throws Exception {
    Edm edm = createEdm();
    assertNotNull(edm);
    EdmEntitySet entitySet = edm.getDefaultEntityContainer().getEntitySet("Employees");
    EdmAnnotations annotations =
        edm.getDefaultEntityContainer().getAssociationSet(entitySet,
            (EdmNavigationProperty) entitySet.getEntityType().getProperty("ne_Manager")).getAnnotations();
    checkNullAnnotations(annotations);
  }
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.Edm

    checkNullAnnotations(annotations);
  }

  @Test
  public void nullAnnotationsAtEdmContainer() throws Exception {
    Edm edm = createEdm();
    assertNotNull(edm);
    EdmAnnotations annotations = edm.getDefaultEntityContainer().getAnnotations();
    checkNullAnnotations(annotations);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.