openapi-generator/samples/client/petstore/perl/t/FakeApiTest.t
2017-01-21 19:12:51 +08:00

78 lines
3.1 KiB
Perl

=begin comment
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
=end comment
=cut
#
# NOTE: This class is auto generated by Swagger Codegen
# Please update the test cases below to test the API endpoints.
# Ref: https://github.com/swagger-api/swagger-codegen
#
use Test::More tests => 1; #TODO update number of test cases
use Test::Exception;
use lib 'lib';
use strict;
use warnings;
use_ok('WWW::SwaggerClient::FakeApi');
my $api = WWW::SwaggerClient::FakeApi->new();
isa_ok($api, 'WWW::SwaggerClient::FakeApi');
#
# test_client_model test
#
{
my $body = undef; # replace NULL with a proper value
my $result = $api->test_client_model(body => $body);
}
#
# test_endpoint_parameters test
#
{
my $number = undef; # replace NULL with a proper value
my $double = undef; # replace NULL with a proper value
my $pattern_without_delimiter = undef; # replace NULL with a proper value
my $byte = undef; # replace NULL with a proper value
my $integer = undef; # replace NULL with a proper value
my $int32 = undef; # replace NULL with a proper value
my $int64 = undef; # replace NULL with a proper value
my $float = undef; # replace NULL with a proper value
my $string = undef; # replace NULL with a proper value
my $binary = undef; # replace NULL with a proper value
my $date = undef; # replace NULL with a proper value
my $date_time = undef; # replace NULL with a proper value
my $password = undef; # replace NULL with a proper value
my $callback = undef; # replace NULL with a proper value
my $result = $api->test_endpoint_parameters(number => $number, double => $double, pattern_without_delimiter => $pattern_without_delimiter, byte => $byte, integer => $integer, int32 => $int32, int64 => $int64, float => $float, string => $string, binary => $binary, date => $date, date_time => $date_time, password => $password, callback => $callback);
}
#
# test_enum_parameters test
#
{
my $enum_form_string_array = undef; # replace NULL with a proper value
my $enum_form_string = undef; # replace NULL with a proper value
my $enum_header_string_array = undef; # replace NULL with a proper value
my $enum_header_string = undef; # replace NULL with a proper value
my $enum_query_string_array = undef; # replace NULL with a proper value
my $enum_query_string = undef; # replace NULL with a proper value
my $enum_query_integer = undef; # replace NULL with a proper value
my $enum_query_double = undef; # replace NULL with a proper value
my $result = $api->test_enum_parameters(enum_form_string_array => $enum_form_string_array, enum_form_string => $enum_form_string, enum_header_string_array => $enum_header_string_array, enum_header_string => $enum_header_string, enum_query_string_array => $enum_query_string_array, enum_query_string => $enum_query_string, enum_query_integer => $enum_query_integer, enum_query_double => $enum_query_double);
}
1;