Skip to content

Commit

Permalink
Live Template kotlin 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kimdohun0104 committed May 17, 2021
1 parent 71351f7 commit c1f1cd8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/main/resources/liveTemplates/FindaTest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,29 @@
<template name="tcase" value="@Test&#10;fun `$NAME$`() {&#10; // GIVEN&#10; $CONTENT$&#10; &#10; // WHEN&#10; &#10; // THEN&#10;}" description="Create test case" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="CONTENT" expression="" defaultValue="" alwaysStopAt="true" />
<context />
<context>
<option name="KOTLIN" value="true" />
</context>
</template>
<template name="tnest" value="@Nested&#10;@DisplayName(&quot;$DISPLAY_NAME$&quot;)&#10;inner class $CLASS_NAME$ {&#10;&#10; $CONTENT$&#10;}&#10;" description="Create @Nested class" toReformat="false" toShortenFQNames="true">
<variable name="DISPLAY_NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="CLASS_NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="CONTENT" expression="" defaultValue="" alwaysStopAt="true" />
<context />
<context>
<option name="KOTLIN" value="true" />
</context>
</template>
<template name="tmock" value="@Mock&#10;private lateinit var $NAME$: $TYPE$" description="Create @Mock property" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="capitalize(String)" defaultValue="" alwaysStopAt="true" />
<variable name="TYPE" expression="" defaultValue="" alwaysStopAt="true" />
<context />
<context>
<option name="KOTLIN" value="true" />
</context>
</template>
<template name="tgiven" value="// GIVEN&#10;$CONTENT$&#10;&#10;// WHEN&#10;&#10;// THEN" description="Create Given When Then format" toReformat="false" toShortenFQNames="true">
<variable name="CONTENT" expression="" defaultValue="" alwaysStopAt="true" />
<context />
<context>
<option name="KOTLIN" value="true" />
</context>
</template>
</templateSet>

0 comments on commit c1f1cd8

Please sign in to comment.