BigBlueBox
An Inventory Management System for a NYLT Course or other Boy Scout Programs
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
itemtest.h
Go to the documentation of this file.
1 #ifndef ITEMTEST_H
2 #define ITEMTEST_H
3 
4 #include <QObject>
5 #include <QtTest>
6 
7 #include <item.h>
8 
9 namespace bbbTest {
10 /***********************************************************************************/
18 /***********************************************************************************/
19 class ItemTest : public QObject
20 {
21  Q_OBJECT
22 public:
23  //************************************************************
26  ItemTest();
27  //************************************************************
28 
29 // All testing functions must be in private slots.
30 private slots:
31  //************************************************************
32  //* Testing Functions
33  //************************************************************
37  void testTest();
38  //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
42  void constructorTest();
43  //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
48  //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
52  void categoryToQStringTest();
53  //************************************************************
54 
55 }; // end class
56 /***********************************************************************************/
57 } // end namespace
58 
59 /***********************************************************************************/
60 #endif // ITEMTEST_H
void constructorTest()
Tests that the constructor sets the correct vals.
Definition: itemtest.cpp:28
void testTest()
Makes sure QTest, .yml an travis.ci are working.
Definition: itemtest.cpp:12
Contains the tests for the Item class.
Definition: itemtest.h:19
ItemTest()
Default Constructor.
Definition: itemtest.cpp:5
void categoryToQStringTest_data()
Test data for Category to string fx.
Definition: itemtest.cpp:44
void categoryToQStringTest()
Tests the Category to string fx.
Definition: itemtest.cpp:59