Ragnis Armus c73e499c5d [Qt5 C++] Actually use the model name prefix in the Qt5 generator (#3981)
* Actually use the model name prefix

* Update the petstore sample
2016-10-19 23:08:14 +08:00

35 lines
557 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();
Pet* createRandomPet();
signals:
void quit();
bool success();
private slots:
void findPetsByStatusTest();
void createAndGetPetTest();
void updatePetTest();
void updatePetWithFormTest();
};
#endif // PETAPITESTS_H