Skip to content

Commit

Permalink
Merge pull request #23 from FindaDeveloper/dohun
Browse files Browse the repository at this point in the history
Dohun
  • Loading branch information
kimdohun0104 authored May 17, 2021
2 parents 1f63ede + c1f1cd8 commit f4a9fa6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 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>
2 changes: 1 addition & 1 deletion src/main/resources/templates/ViewModelTemplate.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package $PACKAGE$

import kr.co.finda.finda.ui.base.BaseViewModel
import kr.co.finda.finda.coreComponent.ui.base.BaseViewModel

class $NAME$ViewModel : BaseViewModel() {

Expand Down

0 comments on commit f4a9fa6

Please sign in to comment.