Skip to content

Commit

Permalink
Fixed #440 - Upgrade ITF Framework Maven Version minimum to 3.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sparsick committed Mar 20, 2024
1 parent 1f781b6 commit c97ca88
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
:issue-453: https://github.com/khmarbaise/maven-it-extension/issues/453[Fixed #453]
:issue-455: https://github.com/khmarbaise/maven-it-extension/issues/455[Fixed #455]
:issue-456: https://github.com/khmarbaise/maven-it-extension/issues/456[Fixed #456]
:issue-440: https://github.com/khmarbaise/maven-it-extension/issues/440[Fixed #440]

:release_0_14_0: https://github.com/khmarbaise/maven-it-extension/milestone/14

Expand All @@ -56,7 +57,7 @@
* {issue-420} - Upgrade assertj-bom to 3.25.0
* {issue-451} - Upgrade assertj-bom to 3.25.1
* {issue-453} - Upgrade memoryfilesystem to 2.8.0
* {issue-???} - ?
* {issue-440} - Upgrade ITF Framework Maven Version minimum to 3.8.1

*Build Improvements*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
@MavenJupiterExtension
class FailureIT {

private static final String SEPARATOR_LINE = "------------------------------------------------------------------------";

@MavenTest
@MavenTest
@DisplayName("The basic configuration should result in a successful build.")
void basic_configuration(MavenExecutionResult project) {
assertThat(project).isSuccessful().out().warn().contains("Neither executionException nor failureException has been set.");
Expand All @@ -42,7 +40,7 @@ void basic_configuration(MavenExecutionResult project) {
void fail_with_mojo_execution_exception(MavenExecutionResult result) {
assertThat(result).isFailure();

assertThat(result).out().info().containsSequence(SEPARATOR_LINE, "BUILD FAILURE", SEPARATOR_LINE);
assertThat(result).out().info().containsSequence("BUILD FAILURE");

//TODO: Is there a simpler way to do this? Can we somehow create better support for that?
assertThat(result).out().error().filteredOn(s -> s.startsWith("Failed to execute goal ")).satisfies(s -> {
Expand All @@ -58,7 +56,7 @@ void fail_with_mojo_execution_exception(MavenExecutionResult result) {
void fail_with_mojo_failure_exception(MavenExecutionResult result) {
assertThat(result).isFailure();

assertThat(result).out().info().containsSequence(SEPARATOR_LINE, "BUILD FAILURE", SEPARATOR_LINE);
assertThat(result).out().info().containsSequence("BUILD FAILURE");

//TODO: Is there a simpler way to do this? Can we somehow create better support for that?
assertThat(result).out().error().filteredOn(s -> s.startsWith("Failed to execute goal ")).satisfies(s -> {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-model</artifactId>
<version>3.2.5</version>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
Expand Down

0 comments on commit c97ca88

Please sign in to comment.