1
+ <templateSet group =" FindaTest" >
2
+ <template name =" tcasenested" value =" @Test @DisplayName(" $DISPLAY_NAME$" ) fun $TEST_NAME$_$CONDITION$_$EXPECT$() { // GIVEN $CONTENT$ viewModel = buildViewModel() // WHEN // THEN }" description =" Create test case in @Nested" toReformat =" false" toShortenFQNames =" true" >
3
+ <variable name =" DISPLAY_NAME" expression =" " defaultValue =" " alwaysStopAt =" true" />
4
+ <variable name =" TEST_NAME" expression =" " defaultValue =" " alwaysStopAt =" true" />
5
+ <variable name =" CONDITION" expression =" " defaultValue =" " alwaysStopAt =" true" />
6
+ <variable name =" EXPECT" expression =" " defaultValue =" " alwaysStopAt =" true" />
7
+ <variable name =" CONTENT" expression =" " defaultValue =" " alwaysStopAt =" true" />
8
+ <context >
9
+ <option name =" KOTLIN_CLASS" value =" true" />
10
+ </context >
11
+ </template >
12
+ <template name =" tcase" value =" @Test @DisplayName(" $DISPLAY_NAME$" ) fun $TEST_NAME$_$EXPECT$() { // GIVEN $CONTENT$ viewModel = buildViewModel() // WHEN // THEN }" description =" Create test case" toReformat =" false" toShortenFQNames =" true" >
13
+ <variable name =" DISPLAY_NAME" expression =" " defaultValue =" " alwaysStopAt =" true" />
14
+ <variable name =" TEST_NAME" expression =" " defaultValue =" " alwaysStopAt =" true" />
15
+ <variable name =" EXPECT" expression =" " defaultValue =" " alwaysStopAt =" true" />
16
+ <variable name =" CONTENT" expression =" " defaultValue =" " alwaysStopAt =" true" />
17
+ <context >
18
+ <option name =" KOTLIN_CLASS" value =" true" />
19
+ </context >
20
+ </template >
21
+ <template name =" tnest" value =" @Nested @DisplayName(" $DISPLAY_NAME$" ) inner class $CLASS_NAME$ { $CONTENT$ }" description =" Create @Nested class" toReformat =" false" toShortenFQNames =" true" >
22
+ <variable name =" DISPLAY_NAME" expression =" " defaultValue =" " alwaysStopAt =" true" />
23
+ <variable name =" CLASS_NAME" expression =" " defaultValue =" " alwaysStopAt =" true" />
24
+ <variable name =" CONTENT" expression =" " defaultValue =" " alwaysStopAt =" true" />
25
+ <context >
26
+ <option name =" KOTLIN_CLASS" value =" true" />
27
+ </context >
28
+ </template >
29
+ <template name =" tmock" value =" @Mock private lateinit var $NAME$: $TYPE$ " description =" Create @Mock property" toReformat =" false" toShortenFQNames =" true" >
30
+ <variable name =" NAME" expression =" capitalize(String)" defaultValue =" " alwaysStopAt =" true" />
31
+ <variable name =" TYPE" expression =" " defaultValue =" " alwaysStopAt =" true" />
32
+ <context >
33
+ <option name =" KOTLIN_CLASS" value =" true" />
34
+ </context >
35
+ </template >
36
+ </templateSet >
0 commit comments