forked from loafle/openapi-generator-original
- Remove pointer usage in generated models - Use const reference wherever possible - Reuse same super class for Qt5 client and server - Support primitive return types for Qt5 client - Add const reference to API calls
35 lines
559 B
C++
35 lines
559 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
|