Currently the usage seemed to be not working correctly to execute a test only for a particular Maven version. The following test is being executed on contradiction to the defined @DisabledForMavenVersion(MavenVersion.M3_8_7):
@MavenTest
@MavenProfile("unknown-profile")
@DisabledForMavenVersion(MavenVersion.M3_8_7)
void unknown_profile(MavenExecutionResult result) {
assertThat(result)
.isSuccessful()
.out()
.warn().containerExactly("The requested profile \"unknown-profile\" could not be activated because it does not exist.");
}
After a deeper analysis the issue. This is related to my smpp parent which defines a property <maven.version>3.8.4</maven.version> which will result in the problem.
Currently the usage seemed to be not working correctly to execute a test only for a particular Maven version. The following test is being executed on contradiction to the defined
@DisabledForMavenVersion(MavenVersion.M3_8_7)
:Related to #327