Package net.karneim.pojobuilder.model

Examples of net.karneim.pojobuilder.model.BuildMethodM


    builder.setPojoType(pojoType);
   
    builder.setType(new TypeM("com.example.output","SampleBuilder"));
    builder.setSelfType(builder.getType());
    builder.setBaseType(new TypeM("com.example.base","BaseBuilder"));
    builder.setBuildMethod( new BuildMethodM());
   
    // When:
    underTest.generateSource(builder);
   
    // Then: @formatter:on
View Full Code Here


        .withMethodNamePattern("with*")
    ));       
    builder.setType(new TypeM("com.example.output","SampleBuilder"));
    builder.setSelfType(builder.getType());
    builder.setCopyMethod(new CopyMethodM("copy"));
    builder.setBuildMethod( new BuildMethodM());
   
    // Assume: properties are returned in insertion order
    assertThat(builder.getProperties().iterator()).extracting("propertyName").containsExactly("someBoolean","someChar","someString");
   
    // When:
View Full Code Here

   
    BuilderM builder = new BuilderM();
    builder.setPojoType(pojoType);
    builder.setType(new TypeM("com.example.output","SampleBuilder"));
    builder.setSelfType(builder.getType());
    builder.setBuildMethod( new BuildMethodM());

    // When:
    underTest.generateSource(builder);
   
    // Then: @formatter:on
View Full Code Here

        .withMethodNamePattern("with*")
    ));   
   
    builder.setType(new TypeM("com.example.output","SampleBuilder"));
    builder.setSelfType(builder.getType());
    builder.setBuildMethod( new BuildMethodM());
   
    // When:
    underTest.generateSource(builder);
   
    // Then: @formatter:on
View Full Code Here

        .withMethodNamePattern("with*")
    ));   
   
    builder.setType(new TypeM("com.example.output","SampleBuilder"));
    builder.setSelfType(builder.getType());
    builder.setBuildMethod( new BuildMethodM());
   
    // When:
    underTest.generateSource(builder);
   
    // Then: @formatter:on
View Full Code Here

        .withMethodNamePattern("with*")
    ));   
   
    builder.setType(new TypeM("com.example.output","SampleBuilder"));
    builder.setSelfType(builder.getType());
    builder.setBuildMethod( new BuildMethodM());
   
    // When:
    underTest.generateSource(builder);
   
    // Then: @formatter:on
View Full Code Here

        .withMethodNamePattern("with*")
    ));   
   
    builder.setType(new TypeM("com.example.output","SampleBuilder").withTypeParameter(K, V));
    builder.setSelfType(builder.getType());
    builder.setBuildMethod( new BuildMethodM());
   
    // When:
    underTest.generateSource(builder);
   
    // Then: @formatter:on
View Full Code Here

    LOG.fine(String.format("elem=%s", input));
    Output result = new Output(input);

    TypeM pojoType = typeMFactory.getTypeM(input.getPojoType());
    result.getBuilderModel().setPojoType(pojoType);
    result.getBuilderModel().setBuildMethod(new BuildMethodM());

    if (input.getDirectives().isGenerationGap()) {
      processBaseClass(result);
      processGenericBuilderInterface(result);
View Full Code Here

TOP

Related Classes of net.karneim.pojobuilder.model.BuildMethodM

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.