Examples of AnnotationServiceFactoryImpl


Examples of org.apache.olingo.odata2.annotation.processor.core.rt.AnnotationServiceFactoryImpl

*/
public class AnnotationServiceFactoryImplTest {

  @Test
  public void createFromPackage() throws ODataException {
    AnnotationServiceFactoryImpl factory = new AnnotationServiceFactoryImpl();
    ODataService service = factory.createAnnotationService(Building.class.getPackage().getName());

    Assert.assertNotNull(service);
  }
View Full Code Here

Examples of org.apache.olingo.odata2.annotation.processor.core.rt.AnnotationServiceFactoryImpl

    Assert.assertNotNull(service);
  }

  @Test
  public void createFromAnnotatedClasses() throws ODataException {
    AnnotationServiceFactoryImpl factory = new AnnotationServiceFactoryImpl();
    final Collection<Class<?>> annotatedClasses = new ArrayList<Class<?>>();
    annotatedClasses.add(RefBase.class);
    annotatedClasses.add(Building.class);
    annotatedClasses.add(Employee.class);
    annotatedClasses.add(Manager.class);
    annotatedClasses.add(Photo.class);
    annotatedClasses.add(Room.class);
    annotatedClasses.add(Team.class);
    ODataService service = factory.createAnnotationService(annotatedClasses);

    Assert.assertNotNull(service);
  }
View Full Code Here

Examples of org.apache.olingo.odata2.annotation.processor.core.rt.AnnotationServiceFactoryImpl

    Assert.assertNotNull(service);
  }

  @Test(expected = ODataException.class)
  public void createFromClasses() throws ODataException {
    AnnotationServiceFactoryImpl factory = new AnnotationServiceFactoryImpl();

    final Collection<Class<?>> notAnnotatedClasses = new ArrayList<Class<?>>();
    notAnnotatedClasses.add(String.class);
    notAnnotatedClasses.add(Long.class);
    ODataService service = factory.createAnnotationService(notAnnotatedClasses);

    Assert.assertNotNull(service);
  }
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.