If you mean one test method inside the test class, there is a right-click option called Run "testMethod" , where testMethod is the actual name of the method.
The shortcut is Ctrl + Shift + F10.
If you place the cursor between methods (even outside of javadoc) or outside the whole class, it will check all the methods in this file.
source share