FileNameTest.h 731 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef FILENAMETEST_H
  2. #define FILENAMETEST_H
  3. #include <cppunit/extensions/HelperMacros.h>
  4. #include "core/basics/FileName.h"
  5. /**
  6. * CppUnit-Testcase.
  7. * Tests for FileName.
  8. */
  9. class FileNameTest : public CppUnit::TestFixture {
  10. CPPUNIT_TEST_SUITE( FileNameTest );
  11. CPPUNIT_TEST( testFileName );
  12. CPPUNIT_TEST( testFileNameSlash );
  13. CPPUNIT_TEST( testPathRelative );
  14. CPPUNIT_TEST_SUITE_END();
  15. private:
  16. public:
  17. void setUp();
  18. void tearDown();
  19. /**
  20. * Test FileName
  21. */
  22. void testFileName();
  23. /**
  24. * Test FileName addSlash/removeSlash
  25. */
  26. void testFileNameSlash();
  27. /**
  28. * Test FileName for relative and absolute path recognition
  29. */
  30. void testPathRelative();
  31. };
  32. #endif // FILENAMETEST_H