TsCanvas.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file TsCanvas.h
22 
23  \brief Test suite for the Qt Canvas implementation.
24  */
25 
26 #ifndef __TERRALIB_UNITTEST_QTWIDGETS_INTERNAL_CANVAS_H
27 #define __TERRALIB_UNITTEST_QTWIDGETS_INTERNAL_CANVAS_H
28 
29 // cppUnit
30 #include <cppunit/extensions/HelperMacros.h>
31 
32 /*!
33  \class TsCanvas
34 
35  \brief Test suite for the Qt canvas widget.
36 
37  This test suite will check the following:
38  <ul>
39  <li>;</li>
40  <li>;</li>
41  <li>;</li>
42  </ul>
43  */
44 class TsCanvas : public CPPUNIT_NS::TestFixture
45 {
46 // It registers this class as a Test Suit
48 
49 // It registers the class methods as Test Cases belonging to the suit
52 
54 
55  public:
56 
57 // It sets up context before running the test.
58  void setUp();
59 
60 // It cleann up after the test run.
61  void tearDown();
62 
63  protected:
64 
65 // Test Cases:
66 
67  /*! \brief Test Case: it will test if the transformation from/to device and world is ok. */
68  void tcTransformation();
69 
70  /*! \brief Test Case: it will draw several layers in order to make a benchmark. */
71  void tcPerformance();
72 };
73 
74 #endif // __TERRALIB_UNITTEST_QTWIDGETS_INTERNAL_CANVAS_H
75 
void tcPerformance()
Test Case: it will draw several layers in order to make a benchmark.
Definition: TsCanvas.cpp:119
void setUp()
Definition: TsCanvas.cpp:53
void tearDown()
Definition: TsCanvas.cpp:57
void tcTransformation()
Test Case: it will test if the transformation from/to device and world is ok.
Definition: TsCanvas.cpp:61
CPPUNIT_TEST(tcTransformation)
Test suite for the Qt canvas widget.
Definition: TsCanvas.h:44
CPPUNIT_TEST_SUITE(TsCanvas)
CPPUNIT_TEST_SUITE_END()