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

java-micronaut.client.test.model_test.groovy.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
package {{package}}

{{#imports}}import {{import}}
{{/imports}}
import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification
import jakarta.inject.Inject

/**
 * Model tests for {{classname}}
 */
@MicronautTest
public class {{classname}}Spec extends Specification {
    {{#models}}
    {{#model}}
    {{^vendorExtensions.x-is-one-of-interface}}
    {{^isEnum}}
    private final {{classname}} model = new {{classname}}()

    {{/isEnum}}
    /**
     * Model tests for {{classname}}
     */
    void '{{classname}} test'() {
        // TODO: test {{classname}}
    }

    {{#allVars}}
    /**
     * Test the property '{{name}}'
     */
    void '{{classname}} property {{name}} test'() {
        // TODO: test {{name}}
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy