mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
36 lines
587 B
C++
36 lines
587 B
C++
#ifndef PETAPITESTS_H
|
|
#define PETAPITESTS_H
|
|
|
|
#include <QtTest/QtTest>
|
|
#include <QTimer>
|
|
|
|
#include "../client/SWGPetApi.h"
|
|
|
|
using namespace Swagger;
|
|
|
|
class PetApiTests: public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
PetApiTests();
|
|
virtual ~PetApiTests();
|
|
|
|
static void runTests();
|
|
|
|
private:
|
|
SWGPetApi* getApi();
|
|
SWGPet* createRandomPet();
|
|
|
|
signals:
|
|
void quit();
|
|
bool success();
|
|
|
|
private slots:
|
|
void getPetByIdTest();
|
|
void findPetsByStatusTest();
|
|
void createAndGetPetTest();
|
|
void updatePetTest();
|
|
void updatePetWithFormTest();
|
|
};
|
|
|
|
#endif // PETAPITESTS_H
|