-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathepy_Scala.xml
46 lines (46 loc) · 2.68 KB
/
epy_Scala.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<templateSet group="epy/Scala">
<template name="testinter" value=""$TARGET$" should "$RESULT$" in { intercept[$THROWABLE$] { } } " description="FlatSpec intercept test" toReformat="false" toShortenFQNames="true">
<variable name="TARGET" expression="capitalize(String)" defaultValue="it" alwaysStopAt="false" />
<variable name="RESULT" expression="capitalize(String)" defaultValue="returns something" alwaysStopAt="false" />
<variable name="THROWABLE" expression="classNameComplete()" defaultValue="Throwable" alwaysStopAt="true" />
<context>
<option name="SCALA" value="true" />
<option name="SCALA_CODE" value="true" />
</context>
</template>
<template name="testassert" value=""$TARGET$" should "$RESULT$" in { assert($EXP$) }" description="FlatSpec assert test" toReformat="false" toShortenFQNames="true">
<variable name="TARGET" expression="capitalize(String)" defaultValue="it" alwaysStopAt="false" />
<variable name="RESULT" expression="capitalize(String)" defaultValue="returns" alwaysStopAt="false" />
<variable name="EXP" expression="" defaultValue="0 == 0" alwaysStopAt="true" />
<context>
<option name="SCALA" value="true" />
<option name="SCALA_CODE" value="true" />
</context>
</template>
<template name="surroundAssertNull" value="assert($SELECTION$ == null)$END$" description="surround with assert null" toReformat="false" toShortenFQNames="true">
<context>
<option name="SCALA" value="true" />
<option name="SCALA_CODE" value="true" />
</context>
</template>
<template name="surroundAssert" value="assert($SELECTION$)$END$" description="surround with assert" toReformat="false" toShortenFQNames="true">
<context>
<option name="SCALA" value="true" />
<option name="SCALA_CODE" value="true" />
</context>
</template>
<template name="surroundAssertpathContains" value="assert($SELECTION$.contains("$PATH$"))$END$" description="surround with assert" toReformat="false" toShortenFQNames="true">
<variable name="PATH" expression="clipboard()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="SCALA" value="true" />
<option name="SCALA_CODE" value="true" />
</context>
</template>
<template name="surroundAssertEquals" value="assert($SELECTION$ == "$PATH$")$END$" description="surround with assert" toReformat="false" toShortenFQNames="true">
<variable name="PATH" expression="clipboard()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="SCALA" value="true" />
<option name="SCALA_CODE" value="true" />
</context>
</template>
</templateSet>