0

When I create a test class about intellj Idea I would like to extend the basic test class directly.

enter image description here

Should look like this:

enter image description here

is there a way to set that the BaseTest class is extended directly when creating a test? i have searched in the settings and the net but could not find it.

Hubi
  • 440
  • 1
  • 11
  • 25

1 Answers1

0

Well, it is beauty of IntelliJ that when you can’t find any shortcut you can create your own.

Go to settings ctrl+alt+s and search for live templates.

Select your preferred language and create your own shortcut by referring already available default shortcut.

Ctrl+shift+t is shortcut to create test of current class. You can modify that per your use.

If you have some doubt, tomorrow morning I will give you one for your case when I turn my laptop on.

Kunal Vohra
  • 2,703
  • 2
  • 15
  • 33