SpherePackingScenarioGenerator
|
00001 /* 00002 * ChannelPrinterHelperTests.h 00003 * 00004 * Created on: Mar 11, 2012 00005 * Author: michael 00006 */ 00007 00008 #ifndef CHANNELPRINTERHELPERTESTS_H_ 00009 #define CHANNELPRINTERHELPERTESTS_H_ 00010 00011 #include "tarch/tests/TestCase.h" 00012 #include "xml/twoD/ChannelPrinterHelper.h" 00013 #include "algorithms/geometries/Channel.h" 00014 00015 namespace xml { 00016 namespace twoD { 00017 namespace tests { 00018 class ChannelPrinterHelperTests; 00019 } /* namespace tests */ 00020 } /* namespace twoD */ 00021 } /* namespace xml */ 00022 00023 class xml::twoD::tests::ChannelPrinterHelperTests : public tarch::tests::TestCase { 00024 typedef algorithms::geometries::Channel Channel; 00025 typedef xml::twoD::ChannelPrinterHelper Helper; 00026 typedef xml::twoD::Line Line; 00027 typedef xml::twoD::Point Point; 00028 00029 public: 00030 ChannelPrinterHelperTests(); 00031 virtual 00032 ~ChannelPrinterHelperTests(); 00033 00034 void testAreRectanglesSeparatedAlongXOrYAxis(); 00035 00036 void testAreProjectionsSeparated(); 00037 00038 void testLineGetXPosOfProjection(); 00039 00040 void testGetIntersectionPoint(); 00041 00045 virtual void run(); 00046 00050 virtual void setUp(){} 00051 }; 00052 00053 #endif /* CHANNELPRINTERHELPERTESTS_H_ */