Skip to content

Constructor names are not compared #87

Open
@sergio-dsr

Description

@sergio-dsr
Truth.assertAbout(JavaSourcesSubjectFactory.javaSources())
                .that(givenJavaFile)
                .processedWith(someProcessor)
                .compilesWithoutError()
                .and()
                .generatesSources(expectedJavaFile);

Expected and generated constructor names are not compared.
Obviously it will fail later at generated source compilation if name is wrong, but it would be nice to detect it in generated sources comparison to make tests fail if such error occurs.

Generated:

public class Generated {
  public Generated() {
  }
}

Expected:

public class Generated {
  public GeneratedWithBadName() {
  }
}

With the previous examples, comparison does not fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions