summaryrefslogtreecommitdiff
path: root/plugin/src/test/kotlin/moe/nea/archenemy/ArchenemyGreetingPluginTest.kt
blob: 7d369883d2ca278aecfbdb9cde263af1de140862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"))
    }
}