forked from loafle/openapi-generator-original
* udpate default value for cpp, remove unused imports * update cpprest template * update tizen default value * update cpp restbed default value * update qt5cpp samples * update pistache samples * regenerate restbed ignore file
35 lines
560 B
C++
35 lines
560 B
C++
#ifndef PETAPITESTS_H
|
|
#define PETAPITESTS_H
|
|
|
|
#include <QtTest/QtTest>
|
|
#include <QTimer>
|
|
|
|
#include "../client/OAIPetApi.h"
|
|
|
|
using namespace OpenAPI;
|
|
|
|
class PetApiTests: public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
PetApiTests();
|
|
virtual ~PetApiTests();
|
|
|
|
static void runTests();
|
|
|
|
private:
|
|
OAIPetApi* getApi();
|
|
OAIPet* createRandomPet();
|
|
|
|
signals:
|
|
void quit();
|
|
bool success();
|
|
|
|
private slots:
|
|
void findPetsByStatusTest();
|
|
void createAndGetPetTest();
|
|
void updatePetTest();
|
|
void updatePetWithFormTest();
|
|
};
|
|
|
|
#endif // PETAPITESTS_H
|