Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <templateSet group="java">
- <template name="log:slf4j" value="private static final org.slf4j.Logger $LOGGER$ = org.slf4j.LoggerFactory.getLogger($CLASSNAME$.class);" description="Creates a logger with slf4j" toReformat="true" toShortenFQNames="true">
- <variable name="LOGGER" expression="" defaultValue=""LOGGER"" alwaysStopAt="true" />
- <variable name="CLASSNAME" expression="className()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="JAVA_DECLARATION" value="true" />
- </context>
- </template>
- <template name="mock" value="final $CLASSNAME$ $MOCKNAME$ = org.mockito.Mockito.mock($CLASSNAME$.class);" description="Declares a Mockito mock creation" toReformat="true" toShortenFQNames="true">
- <variable name="CLASSNAME" expression="" defaultValue="" alwaysStopAt="true" />
- <variable name="MOCKNAME" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_STATEMENT" value="true" />
- </context>
- </template>
- <template name="util:cstr" value="private $CLASSNAME$() { throw new AssertionError("Not instantiable"); }" description="Utility classes : forbidden constructor" toReformat="false" toShortenFQNames="true">
- <variable name="CLASSNAME" expression="className()" defaultValue="" alwaysStopAt="false" />
- <context>
- <option name="JAVA_DECLARATION" value="true" />
- </context>
- </template>
- </templateSet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement