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

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

Go to download

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

The newest version!
{{#models}}
{{#model}}
import 'package:{{pubName}}/api.dart';
import 'package:test/test.dart';

// tests for {{classname}}
void main() {
{{^isEnum}}
  var instance = new {{classname}}();
{{/isEnum}}

  group('test {{classname}}', () {
    {{#vars}}
    {{#description}}
    // {{{description}}}
    {{/description}}
    // {{{dataType}}} {{name}}{{#defaultValue}} (default value: {{{.}}}){{/defaultValue}}
    test('to test the property `{{name}}`', () async {
      // TODO
    });

    {{/vars}}

  });

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy