Package org.apache.olingo.odata2.api.edm

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


    checkNullAnnotations(annotations);
  }

  @Test
  public void nullAnnotationsAtEdmContainer() throws Exception {
    Edm edm = createEdm();
    assertNotNull(edm);
    EdmAnnotations annotations = edm.getDefaultEntityContainer().getAnnotations();
    checkNullAnnotations(annotations);
  }
View Full Code Here

    checkNullAnnotations(annotations);
  }

  @Test
  public void nullAnnotationsAtFunctionImport() throws Exception {
    Edm edm = createEdm();
    assertNotNull(edm);
    EdmAnnotations annotations = edm.getDefaultEntityContainer().getFunctionImport("EmployeeSearch").getAnnotations();
    checkNullAnnotations(annotations);
  }
View Full Code Here

    checkNullAnnotations(annotations);
  }

  @Test
  public void nullAnnotationsAtFunctionImportParameter() throws Exception {
    Edm edm = createEdm();
    assertNotNull(edm);
    EdmAnnotations annotations =
        edm.getDefaultEntityContainer().getFunctionImport("EmployeeSearch").getParameter("q").getAnnotations();
    checkNullAnnotations(annotations);
  }
View Full Code Here

    checkNullAnnotations(annotations);
  }

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

    assertNull(annotationElements);
  }

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

    assertNotNull(edm);
    FullQualifiedName fqNameEmployee = new FullQualifiedName("RefScenario", "Employee");
    EdmProvider testProvider = new EdmTestProvider();
    EdmImplProv edmImpl = (EdmImplProv) edm;
View Full Code Here

  }

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

    FullQualifiedName fqNameAssociation = new FullQualifiedName("RefScenario", "BuildingRooms");
    EdmProvider testProvider = new EdmTestProvider();
    EdmImplProv edmImpl = (EdmImplProv) edm;
View Full Code Here

  }

  @Test
  public void testAssociationSet() throws Exception {
    EdmProvider testProvider = new EdmTestProvider();
    Edm edm = createEdm();
    assertNotNull(edm);

    FullQualifiedName fqNameAssociation = new FullQualifiedName("RefScenario", "ManagerEmployees");
    EdmImplProv edmImpl = (EdmImplProv) edm;
    AssociationSet associationSet =
View Full Code Here

  }

  @Test
  public void testSchema() throws Exception {
    EdmProvider testProvider = new EdmTestProvider();
    Edm edm = createEdm();
    assertNotNull(edm);

    EdmImplProv edmImpl = (EdmImplProv) edm;
    List<Schema> schemas = edmImpl.getEdmProvider().getSchemas();
    List<Schema> testSchemas = testProvider.getSchemas();
View Full Code Here

  }

  @Test
  public void testContainer() throws Exception {
    EdmProvider testProvider = new EdmTestProvider();
    Edm edm = createEdm();
    assertNotNull(edm);

    EdmImplProv edmImpl = (EdmImplProv) edm;
    EntityContainerInfo container = edmImpl.getEdmProvider().getEntityContainerInfo("Container2");
    EntityContainerInfo testContainer = testProvider.getEntityContainerInfo("Container2");
View Full Code Here

TOP

Related Classes of org.apache.olingo.odata2.api.edm.Edm

Copyright © 2018 www.massapicom. 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.