Tutorial by Examples

@org.junit.Test public void should_$name$() { $END$ } Make sure to check the Shorted FQ names box when creating this template. When you type "should" (the abbreviation), this will add the necessary import org.junit.Test; statement at the top of the file, and this code: @Test...
Consider the utility class pattern: a class with only static methods and no fields. It's recommended to prevent instantiation of such classes by adding a private a constructor. This live template example makes it easy to add a private constructor to an existing class, using the name of the enclos...

Page 1 of 1