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

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


  @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


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

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

  @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

  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

  }

  @Test
  public void getAnnotations() throws Exception {
    EdmAnnotatable annotatable = propertySimpleProvider;
    EdmAnnotations annotations = annotatable.getAnnotations();
    assertNull(annotations.getAnnotationAttributes());
    assertNull(annotations.getAnnotationElements());
  }
View Full Code Here

  }

  @Test
  public void getAnnotations() throws Exception {
    EdmAnnotatable annotatable = (EdmAnnotatable) edmAssociationSet;
    EdmAnnotations annotations = annotatable.getAnnotations();
    assertNull(annotations.getAnnotationAttributes());
    assertNull(annotations.getAnnotationElements());
  }
View Full Code Here

  @Test
  public void parameterAnnotations() throws Exception {
    EdmParameter parameter = edmFunctionImport.getParameter("fooParameter1");
    assertNotNull(parameter);
    EdmAnnotatable annotatable = (EdmAnnotatable) parameter;
    EdmAnnotations annotations = annotatable.getAnnotations();
    assertNull(annotations.getAnnotationAttributes());
    assertNull(annotations.getAnnotationElements());
  }
View Full Code Here

  }

  @Test
  public void getAnnotations() throws Exception {
    EdmAnnotatable annotatable = edmFunctionImport;
    EdmAnnotations annotations = annotatable.getAnnotations();
    assertNull(annotations.getAnnotationAttributes());
    assertNull(annotations.getAnnotationElements());
  }
View Full Code Here

  }

  @Test
  public void getAnnotations() throws Exception {
    EdmAnnotatable annotatable = edmEntitySetFoo;
    EdmAnnotations annotations = annotatable.getAnnotations();
    assertNull(annotations.getAnnotationAttributes());
    assertNull(annotations.getAnnotationElements());
  }
View Full Code Here

TOP

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

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.