Examples of Edm


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

    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

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

    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

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

    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

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

    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

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

  }

  @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

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

  }

  @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

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

  }

  @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

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

  }

  @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

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

    assertEquals(testContainer.isDefaultEntityContainer(), container.isDefaultEntityContainer());
  }

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

    List<EdmEntitySet> entitySets = edm.getEntitySets();
    assertEquals(6, entitySets.size());
  }
View Full Code Here

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

    assertEquals(6, entitySets.size());
  }

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

    List<EdmFunctionImport> functionImports = edm.getFunctionImports();
    assertEquals(7, functionImports.size());
  }
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.