Search code examples
javatagsjunit5

How to write an array of tags with using Junit5 and Java in autotest?


I can't use an array of tags in annotation @Tags using Junit5 and Java.

I try to use next examples from documentation of Junit5 and Java: @Tags(@Tag("PROD"), @Tag("DEV")) @Tags(Tag("PROD"), Tag("DEV")) But it doesn't work. If I try to use next example, it work. @Tag("PROD") @Tag("DEV")

Why I can't to use an array of tags? What am I doing wrong?


Solution

  • @Tags({ @Tag("PROD"), @Tag("DEV") })