All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.kotlin-micronaut.common.test.model_test.mustache Maven / Gradle / Ivy

package {{package}}

{{#imports}}import {{import}}
{{/imports}}
import io.micronaut.test.extensions.junit5.annotation.MicronautTest
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions

/**
 * Model tests for {{classname}}
 */
@MicronautTest
class {{classname}}Test {

{{#models}}
    {{#model}}
        {{^vendorExtensions.x-is-one-of-interface}}
            {{^isEnum}}
    val model: {{classname}}? = null

            {{/isEnum}}
    /**
     * Model tests for {{classname}}
     */
    @Test
    fun test{{classname}}() {
        // TODO: test {{classname}}
    }

            {{#allVars}}
    /**
     * Test the property '{{vendorExtensions.realName}}'
     */
    @Test
    fun {{vendorExtensions.realName}}Test() {
        // TODO: test {{vendorExtensions.realName}}
    }

            {{/allVars}}
        {{/vendorExtensions.x-is-one-of-interface}}
    {{/model}}
{{/models}}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy