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 00000000..07422ae5 --- /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 00000000..d1fd8ef3 --- /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 00000000..9eacb1ef --- /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 00000000..08097086 --- /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