I\'ve made some unit tests (in test class). The tutorial I\'ve read said that I should make a TestSuite for the unittests.
Odd is that when I\'m running the unit tes
Be careful when using an IDE's code-completion to add the import for @Test
. It has to be import org.junit.Test
and not import org.testng.annotations.Test
, for example. If you use the second one by mistake, you'll get the "no runnable methods" error.
(I was using Intellij Idea 2017 which imported org.junit.jupiter.api.Test
instead!)