I wrote my test class which requires three system properties provided.
Currently I'm trying with this.
// all three system properties should be specified!
@DisabledIfSystemProperty(named = "some, matches = "^\\s+$")
@DisabledIfSystemProperty(named = "other, matches = "^\\s+$")
@DisabledIfSystemProperty(named = "another, matches = "^\\s+$")
class MyTest {
}
It seems not work. How can I disable the MyTest
class when any of these required system properties is missing?
In contrast, How can I enable the MyTest
class when all of these system properties are specified?
Oh... annotations work as expected.
Originally, I tried to put those annotation on my abstract parent test class.
An I jsut found,
I should put them on each subclass.