Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README example does not compile #197

Closed
don-vip opened this issue May 12, 2021 · 2 comments
Closed

README example does not compile #197

don-vip opened this issue May 12, 2021 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@don-vip
Copy link

don-vip commented May 12, 2021

Describe the bug
I'm following the README at the step:

import static org.assertj.core.api.Assertions.assertThat;

import com.soebes.itf.jupiter.extension.MavenJupiterExtension;
import com.soebes.itf.jupiter.extension.MavenTest;
import com.soebes.itf.jupiter.maven.MavenExecutionResult;

@MavenJupiterExtension // <1>
class FirstMavenIT {

  @MavenTest // <2>
  void the_first_test_case(MavenExecutionResult result) { //<3>
    assertThat(result).build().isSuccessful(); // <4>
  }
}

Current behavior
The code does not compile:
The method build() is undefined for the type ObjectAssert<MavenExecutionResult>

Expected behavior
Code compiles.

The used versions

  • Maven 3.8.1
  • OpenJDK 11.0.6
  • Eclipse 2020-03
  • ITF: 0.9.0
  • AssertJ: tried 3.16.1 and 3.19.0
@don-vip don-vip added the bug Something isn't working label May 12, 2021
@khmarbaise khmarbaise self-assigned this May 12, 2021
@khmarbaise khmarbaise added this to the 0.10.0 milestone May 12, 2021
@khmarbaise
Copy link
Owner

@don-vip Hi first many thanks for reporting the issue. Can you please recheck the updated example in the README.md ...

@don-vip
Copy link
Author

don-vip commented May 12, 2021

Ah, much better, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants