perl.api_test.mustache Maven / Gradle / Ivy
{{>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;
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}}
done_testing();