I migrated my test from JUnit 4 to JUnit 5. All works fine but the translation of my previous annotation:
@IfProfileValue(name = "run.import.tests", values = {"true"})
into
@EnabledIfSystemProperty(named = "run.import.tests", matches = "true")
doesn't work as expected. Before the migration I runned my tests passing the argument
-Drun.import.tests=true
only if I passed it they were runned. With Junit 5, even with annotation @EnabledIfSystemProperty(named = "run.import.tests", matches = "true") the test is runned even if the argument run.import.tests is not set.
Am I doing something wrong?