Package net.karneim.pojobuilder.analysis

Examples of net.karneim.pojobuilder.analysis.Input


  @Test
  public void testAnalyze() throws Exception {
    // Given:
    String pojoClassname = Pojo.class.getCanonicalName();
    TypeElement pojoType = elements.getTypeElement(pojoClassname);
    Input input = inputFactory.getInput(pojoType);

    // When:
    Output output = underTest.analyze(input);

    // Then:
View Full Code Here


  @Test
  public void testAnalyzeWithPojoExtendsClassWithPublicField() throws Exception {
    // Given:
    String pojoClassname = SubclassPojo1.class.getCanonicalName();
    TypeElement pojoType = elements.getTypeElement(pojoClassname);
    Input input = inputFactory.getInput(pojoType);

    // When:
    Output output = underTest.analyze(input);

    // Then:
View Full Code Here

  @Test
  public void testAnalyzeWithPojoWhichExtendsClassInSamePackage() throws Exception {
    // Given:
    String pojoClassname = SubclassPojo2.class.getCanonicalName();
    TypeElement pojoType = elements.getTypeElement(pojoClassname);
    Input input = inputFactory.getInput(pojoType);

    // When:
    Output output = underTest.analyze(input);

    // Then:
View Full Code Here

  @Test
  public void testAnalyzeWithPojoWhichExtendsClassInOtherPackage() throws Exception {
    // Given:
    String pojoClassname = SubclassPojo3.class.getCanonicalName();
    TypeElement pojoType = elements.getTypeElement(pojoClassname);
    Input input = inputFactory.getInput(pojoType);

    // When:
    Output output = underTest.analyze(input);

    // Then:
View Full Code Here

          List<Output> outputList = new ArrayList<Output>();
          for (Element elem : elementsToProcess) {
            try {
              // note(String.format("Processing %s", elem), elem);
              Input input = inputFactory.getInput(elem);
              Output output = javaModelAnalyzer.analyze(input);
              outputList.add(output);
            } catch (Exception ex) {
              addFailedElement(elem, ex);
            }
View Full Code Here

TOP

Related Classes of net.karneim.pojobuilder.analysis.Input

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.