Class BasicIT

java.lang.Object
com.soebes.itf.maven.plugin.BasicIT

@MavenJupiterExtension class BasicIT extends Object
  • Constructor Details

    • BasicIT

      BasicIT()
  • Method Details

    • groupid_artifactid_should_be_ok

      @MavenTest @MavenOption("--no-transfer-progress") @MavenOption("-X") @DisplayName("Running a basic test which makes sure the groupId/artifact of the plugin are ok.") void groupid_artifactid_should_be_ok(MavenExecutionResult result)
    • install_should_not_fail

      @MavenTest @MavenGoal("pre-integration-test") @DisplayName("Running within an execution block in pom file with given goal but no explicit life cycle binding.") void install_should_not_fail(MavenExecutionResult result)
      The test will check that the jar of the test project will be installed into the itf-repo and the appropriate pom.xml file.

      The given test project does not have any dependencies nor any code.

      We are using pre-integration-test because we want to test only the plugin itself.

      Parameters:
      result - MavenExecutionResult
    • install_with_a_single_dependency

      @MavenTest @MavenOption("--no-transfer-progress") @MavenGoal("pre-integration-test") @DisplayName("Install with a single dependency.") void install_with_a_single_dependency(MavenExecutionResult result)
      The test will check that the jar of the test project and the single dependency will be installed into the itf-repo and the appropriate pom.xml file.

      The given test project has only a single dependency but no code at all. The single dependency is apiguardian-api 1.1.0 which does not have a dependency on it own.

      We are using pre-integration-test because we want to test only the plugin itself.

      Parameters:
      result - MavenExecutionResult
    • install_with_dep_and_transitive_dep

      @MavenTest @DisplayName("Install with a single dependency and one transitive dependency") @MavenOption("--no-transfer-progress") @MavenGoal("pre-integration-test") void install_with_dep_and_transitive_dep(MavenExecutionResult result)
      The test will check that the jar of the test project and the single dependency will be installed into the itf-repo and the appropriate pom.xml file including their transitive dependencies.

      The given test project has a single dependency but no code at all. The single dependency is junit which has a single dependency hamcrest-core (scope:compile). Furthermore the hamcrest-core has a hamcrest-parent which needs to be installed as well.

      We are using pre-integration-test because we want to test only the plugin itself.

      Parameters:
      result - MavenExecutionResult