BigBlueBox
An Inventory Management System for a NYLT Course or other Boy Scout Programs
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
categorytest.h
Go to the documentation of this file.
1 #ifndef CATEGORYTEST_H
2 #define CATEGORYTEST_H
3 
4 #include <QObject>
5 #include <QtTest>
6 #include <QString>
7 
8 #include "category.h"
9 
10 namespace bbbTest {
11 /***********************************************************************************/
19 /***********************************************************************************/
20 class CategoryTest : public QObject
21 {
22  Q_OBJECT
23 public:
24  //************************************************************
27  CategoryTest();
28  //************************************************************
29 
30 // All testing functions must be in private slots.
31 private slots:
32  //************************************************************
33  //* Testing Functions
34  //************************************************************
38  void testTest();
39  //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
43  void testCatEnumVals();
44  //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
48  void testIntToString_data();
49  //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
53  void testIntToString();
54  //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
58  void testStringToInt_data();
59  //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
63  void testStringToInt();
64  //************************************************************
65 
66 }; // end class
67 /***********************************************************************************/
68 
69 } // end namespace
70 #endif // CATEGORYTEST_H
void testStringToInt()
Tests for String to int convertions.
Definition: categorytest.cpp:93
CategoryTest()
Default Constructor.
Definition: categorytest.cpp:5
void testStringToInt_data()
Test Data for String to int convertions.
Definition: categorytest.cpp:74
Contains the tests for the Category class.
Definition: categorytest.h:20
void testTest()
Makes sure QTest, .yml an travis.ci are working.
Definition: categorytest.cpp:12
void testIntToString()
Tests int to QString conversions.
Definition: categorytest.cpp:61
void testIntToString_data()
Test Data for testIntToString()
Definition: categorytest.cpp:46
void testCatEnumVals()
Tests the int values of the enums.
Definition: categorytest.cpp:30