Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <templateSet group="java">
  2. <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">
  3. <variable name="LOGGER" expression="" defaultValue=""LOGGER"" alwaysStopAt="true" />
  4. <variable name="CLASSNAME" expression="className()" defaultValue="" alwaysStopAt="true" />
  5. <context>
  6. <option name="JAVA_DECLARATION" value="true" />
  7. </context>
  8. </template>
  9. <template name="mock" value="final $CLASSNAME$ $MOCKNAME$ = org.mockito.Mockito.mock($CLASSNAME$.class);" description="Declares a Mockito mock creation" toReformat="true" toShortenFQNames="true">
  10. <variable name="CLASSNAME" expression="" defaultValue="" alwaysStopAt="true" />
  11. <variable name="MOCKNAME" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
  12. <context>
  13. <option name="JAVA_DECLARATION" value="true" />
  14. <option name="JAVA_STATEMENT" value="true" />
  15. </context>
  16. </template>
  17. <template name="util:cstr" value="private $CLASSNAME$() {&#10; throw new AssertionError("Not instantiable");&#10;}" description="Utility classes : forbidden constructor" toReformat="false" toShortenFQNames="true">
  18. <variable name="CLASSNAME" expression="className()" defaultValue="" alwaysStopAt="false" />
  19. <context>
  20. <option name="JAVA_DECLARATION" value="true" />
  21. </context>
  22. </template>
  23. </templateSet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement