-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_test_nested.xml
More file actions
13 lines (13 loc) · 1.39 KB
/
Copy path_test_nested.xml
File metadata and controls
13 lines (13 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
<template name="_test_nested" value="@org.junit.jupiter.api.Nested @org.junit.jupiter.api.DisplayName("$TEST_NAME$") class $METHOD_NAME$ { @org.junit.jupiter.api.Test @org.junit.jupiter.api.DisplayName("$SUBTEST_NAME$") public void $SUBTEST_NAME_METHOD$ () { //GIVEN //WHEN //THEN org.assertj.core.api.Assertions.assertThat($ASSERT$).isEqualTo($RESULT_EQUAL$); } }" description="Group your test" toReformat="true" toShortenFQNames="true" useStaticImport="true">
<variable name="TEST_NAME" expression="" defaultValue=""TODO: Rename this"" alwaysStopAt="true" />
<variable name="METHOD_NAME" expression="camelCase(TEST_NAME)" defaultValue=""methodName"" alwaysStopAt="true" />
<variable name="SUBTEST_NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="SUBTEST_NAME_METHOD" expression="snakeCase(SUBTEST_NAME)" defaultValue=""subtest"" alwaysStopAt="true" />
<variable name="ASSERT" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="RESULT_EQUAL" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_CODE" value="true" />
<option name="JAVA_COMMENT" value="false" />
<option name="JAVA_ELSE_PLACE" value="false" />
</context>
</template>