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

jersey2-v3template.model_test.mustache Maven / Gradle / Ivy

Go to download

jersey2 generator from openapi 3.x spec files. Changing to openapitools dependencies.

There is a newer version: 6.6
Show newest version
{{>licenseInfo}}

package {{package}};

{{#imports}}import {{import}};
{{/imports}}
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;

{{#fullJavaUtil}}
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
{{/fullJavaUtil}}

/**
 * Model tests for {{classname}}
 */
public class {{classname}}Test {
    {{#models}}
    {{#model}}
    {{^isEnum}}
    private final {{classname}} model = new {{classname}}();

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

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

    {{/allVars}}
    {{/model}}
    {{/models}}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy