Skip to content

Commit f4a9fa6

Browse files
authored
Merge pull request #23 from FindaDeveloper/dohun
Dohun
2 parents 1f63ede + c1f1cd8 commit f4a9fa6

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/main/resources/liveTemplates/FindaTest.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,29 @@
22
<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">
33
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
44
<variable name="CONTENT" expression="" defaultValue="" alwaysStopAt="true" />
5-
<context />
5+
<context>
6+
<option name="KOTLIN" value="true" />
7+
</context>
68
</template>
79
<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">
810
<variable name="DISPLAY_NAME" expression="" defaultValue="" alwaysStopAt="true" />
911
<variable name="CLASS_NAME" expression="" defaultValue="" alwaysStopAt="true" />
1012
<variable name="CONTENT" expression="" defaultValue="" alwaysStopAt="true" />
11-
<context />
13+
<context>
14+
<option name="KOTLIN" value="true" />
15+
</context>
1216
</template>
1317
<template name="tmock" value="@Mock&#10;private lateinit var $NAME$: $TYPE$" description="Create @Mock property" toReformat="false" toShortenFQNames="true">
1418
<variable name="NAME" expression="capitalize(String)" defaultValue="" alwaysStopAt="true" />
1519
<variable name="TYPE" expression="" defaultValue="" alwaysStopAt="true" />
16-
<context />
20+
<context>
21+
<option name="KOTLIN" value="true" />
22+
</context>
1723
</template>
1824
<template name="tgiven" value="// GIVEN&#10;$CONTENT$&#10;&#10;// WHEN&#10;&#10;// THEN" description="Create Given When Then format" toReformat="false" toShortenFQNames="true">
1925
<variable name="CONTENT" expression="" defaultValue="" alwaysStopAt="true" />
20-
<context />
26+
<context>
27+
<option name="KOTLIN" value="true" />
28+
</context>
2129
</template>
2230
</templateSet>

src/main/resources/templates/ViewModelTemplate.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package $PACKAGE$
22

3-
import kr.co.finda.finda.ui.base.BaseViewModel
3+
import kr.co.finda.finda.coreComponent.ui.base.BaseViewModel
44

55
class $NAME$ViewModel : BaseViewModel() {
66

0 commit comments

Comments
 (0)