From 44ddde296f039f99900b7024e29e3d88490a5b60 Mon Sep 17 00:00:00 2001 From: Graham Date: Wed, 28 Aug 2019 10:57:29 +0100 Subject: [PATCH] Update JUnit test templates to fit OpenRS2's conventions --- .idea/fileTemplates/code/JUnit5 SetUp Method.java | 4 ++++ .idea/fileTemplates/code/JUnit5 TearDown Method.java | 4 ++++ .idea/fileTemplates/code/JUnit5 Test Class.java | 5 +++++ .idea/fileTemplates/code/JUnit5 Test Method.java | 4 ++++ 4 files changed, 17 insertions(+) create mode 100644 .idea/fileTemplates/code/JUnit5 SetUp Method.java create mode 100644 .idea/fileTemplates/code/JUnit5 TearDown Method.java create mode 100644 .idea/fileTemplates/code/JUnit5 Test Class.java create mode 100644 .idea/fileTemplates/code/JUnit5 Test Method.java diff --git a/.idea/fileTemplates/code/JUnit5 SetUp Method.java b/.idea/fileTemplates/code/JUnit5 SetUp Method.java new file mode 100644 index 0000000000..07422ae5df --- /dev/null +++ b/.idea/fileTemplates/code/JUnit5 SetUp Method.java @@ -0,0 +1,4 @@ +@org.junit.jupiter.api.BeforeEach +public void setUp() { + ${BODY} +} \ No newline at end of file diff --git a/.idea/fileTemplates/code/JUnit5 TearDown Method.java b/.idea/fileTemplates/code/JUnit5 TearDown Method.java new file mode 100644 index 0000000000..d1fd8ef380 --- /dev/null +++ b/.idea/fileTemplates/code/JUnit5 TearDown Method.java @@ -0,0 +1,4 @@ +@org.junit.jupiter.api.AfterEach +public void tearDown() { + ${BODY} +} \ No newline at end of file diff --git a/.idea/fileTemplates/code/JUnit5 Test Class.java b/.idea/fileTemplates/code/JUnit5 Test Class.java new file mode 100644 index 0000000000..9eacb1ef8c --- /dev/null +++ b/.idea/fileTemplates/code/JUnit5 Test Class.java @@ -0,0 +1,5 @@ +import static org.junit.jupiter.api.Assertions.*; +#parse("File Header.java") +public final class ${NAME} { + ${BODY} +} \ No newline at end of file diff --git a/.idea/fileTemplates/code/JUnit5 Test Method.java b/.idea/fileTemplates/code/JUnit5 Test Method.java new file mode 100644 index 0000000000..0809708670 --- /dev/null +++ b/.idea/fileTemplates/code/JUnit5 Test Method.java @@ -0,0 +1,4 @@ +@org.junit.jupiter.api.Test +public void ${NAME}() { + ${BODY} +} \ No newline at end of file