etherealjoy c7ff303779 [qt5cpp] Disable creation of empty json fields and handle prefix in model generation (#7206)
* Disable creation of empty json fields and fields for primitives which were not set, but using default values
modelnamePrefix will be the one passed from command line or SWG if none

* Updates after review
Also common http files are splitted
Update Petstore examples
2018-01-07 17:50:44 +08:00

35 lines
560 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 findPetsByStatusTest();
void createAndGetPetTest();
void updatePetTest();
void updatePetWithFormTest();
};
#endif // PETAPITESTS_H