ServidorTFG/tests.h

37 lines
994 B
C
Raw Normal View History

2020-05-08 12:43:46 +02:00
#ifndef TESTS_H
#define TESTS_H
#include <cppunit/TestCase.h>
#include <cppunit/TestFixture.h>
#include <cppunit/ui/text/TextTestRunner.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/TestResult.h>
#include <cppunit/TestResultCollector.h>
#include <cppunit/TestRunner.h>
#include <cppunit/BriefTestProgressListener.h>
#include <cppunit/CompilerOutputter.h>
#include <cppunit/XmlOutputter.h>
#include "config_reader.h"
2020-05-31 19:24:35 +02:00
#include "data_acces.h"
2020-05-08 12:43:46 +02:00
using namespace CppUnit;
class test_basic : public CppUnit::TestFixture{
CPPUNIT_TEST_SUITE(test_basic);
2020-05-31 19:24:35 +02:00
CPPUNIT_TEST(test_initial);
CPPUNIT_TEST(hash_test);
CPPUNIT_TEST(msql_loggin_test);
CPPUNIT_TEST(msql_package_test);
2020-05-08 12:43:46 +02:00
CPPUNIT_TEST_SUITE_END();
public:
void setUp(void);
void pass_tests();
private:
2020-05-31 19:24:35 +02:00
void test_initial();
void hash_test();
void msql_loggin_test();
void msql_package_test();
2020-05-08 12:43:46 +02:00
config_reader *conf;
2020-05-31 19:24:35 +02:00
data_acces *data;
2020-05-08 12:43:46 +02:00
};
#endif // TESTS_H