summaryrefslogtreecommitdiff
path: root/plugin/src/test/kotlin/moe/nea
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2023-12-09 14:00:12 +0100
committerLinnea Gräf <nea@nea.moe>2023-12-09 14:00:12 +0100
commit67bf79815ec27c8b813480c11a45f35ef502fe5b (patch)
tree3656e257e8cb3c9652ee06c101b4da718384d609 /plugin/src/test/kotlin/moe/nea
downloadarchenemy-67bf79815ec27c8b813480c11a45f35ef502fe5b.tar.gz
archenemy-67bf79815ec27c8b813480c11a45f35ef502fe5b.tar.bz2
archenemy-67bf79815ec27c8b813480c11a45f35ef502fe5b.zip
Initial commit
Diffstat (limited to 'plugin/src/test/kotlin/moe/nea')
-rw-r--r--plugin/src/test/kotlin/moe/nea/archenemy/ArchenemyGreetingPluginTest.kt22
1 files changed, 22 insertions, 0 deletions
diff --git a/plugin/src/test/kotlin/moe/nea/archenemy/ArchenemyGreetingPluginTest.kt b/plugin/src/test/kotlin/moe/nea/archenemy/ArchenemyGreetingPluginTest.kt
new file mode 100644
index 0000000..7d36988
--- /dev/null
+++ b/plugin/src/test/kotlin/moe/nea/archenemy/ArchenemyGreetingPluginTest.kt
@@ -0,0 +1,22 @@
+/*
+ * This Kotlin source file was generated by the Gradle 'init' task.
+ */
+package moe.nea.archenemy
+
+import org.gradle.testfixtures.ProjectBuilder
+import kotlin.test.Test
+import kotlin.test.assertNotNull
+
+/**
+ * A simple unit test for the 'moe.nea.archenemy.greeting' plugin.
+ */
+class ArchenemyGreetingPluginTest {
+ @Test fun `plugin registers task`() {
+ // Create a test project and apply the plugin
+ val project = ProjectBuilder.builder().build()
+ project.plugins.apply("moe.nea.archenemy.greeting")
+
+ // Verify the result
+ assertNotNull(project.tasks.findByName("greeting"))
+ }
+}