daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top