xref: /haiku/src/tests/apps/haikudepot/ValidationUtilsTest.h (revision 17889a8c70dbb3d59c1412f6431968753c767bab)
1 /*
2  * Copyright 2019, Andrew Lindesay <apl@lindesay.co.nz>
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef VALIDATION_UTILS_TEST_H
6 #define VALIDATION_UTILS_TEST_H
7 
8 #include "Message.h"
9 
10 #include <TestCase.h>
11 #include <TestSuite.h>
12 
13 
14 class ValidationUtilsTest : public CppUnit::TestCase {
15 public:
16 								ValidationUtilsTest();
17 	virtual						~ValidationUtilsTest();
18 
19 			void				TestEmailValid();
20 			void				TestEmailInvalidNoAt();
21 			void				TestEmailInvalidNoMailbox();
22 			void				TestEmailInvalidNoDomain();
23 			void				TestEmailInvalidTwoAts();
24 
25 			void				TestNicknameValid();
26 			void				TestNicknameInvalid();
27 			void				TestNicknameInvalidBadChars();
28 
29 			void				TestPasswordClearValid();
30 			void				TestPasswordClearInvalid();
31 
32 	static	void				AddTests(BTestSuite& suite);
33 
34 };
35 
36 
37 #endif	// VALIDATION_UTILS_TEST_H
38