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

perl.api_test.mustache Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
{{>partial_license}}
#
# NOTE: This class is auto generated by OpenAPI Generator
# Please update the test cases below to test the API endpoints.
# Ref: https://openapi-generator.tech
#
use Test::More tests => 1; #TODO update number of test cases
use Test::Exception;

use lib 'lib';
use strict;
use warnings;

use_ok('{{moduleName}}::{{classname}}');

my $api = {{moduleName}}::{{classname}}->new();
isa_ok($api, '{{moduleName}}::{{classname}}');

{{#operations}}
{{#operation}}
#
# {{{nickname}}} test
#
# uncomment below and update the test
{{#allParams}}
#my ${{nickname}}_{{paramName}} = undef; # replace NULL with a proper value
{{/allParams}}
#my ${{nickname}}_result = $api->{{nickname}}({{#allParams}}{{paramName}} => ${{nickname}}_{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});

{{/operation}}
{{/operations}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy