1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date        : 2009-06-09
7  * Description : a test for the AdvancedRename utility
8  *
9  * Copyright (C) 2009-2011 by Andi Clemens <andi dot clemens at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_RENAME_CUSTOMIZER_UTEST_H
25 #define DIGIKAM_RENAME_CUSTOMIZER_UTEST_H
26 
27 // Qt includes
28 
29 #include <QObject>
30 
31 class RenameCustomizerTest : public QObject
32 {
33     Q_OBJECT
34 
35 public:
36 
37     explicit RenameCustomizerTest(QObject* const parent = nullptr)
QObject(parent)38         : QObject(parent)
39     {
40     }
41 
42 private Q_SLOTS:
43 
44     void newName_should_return_empty_string_with_empty_filename_data();
45     void newName_should_return_empty_string_with_empty_filename();
46 
47     void setCaseType_set_to_none();
48     void setCaseType_set_to_upper();
49     void setCaseType_set_to_lower();
50 
51     void setUseDefault_true();
52     void setUseDefault_false();
53     void setUseDefault_case_none_should_deliver_original_filename();
54     void setUseDefault_case_upper_should_deliver_uppercase_filename();
55     void setUseDefault_case_lower_should_deliver_lowercase_filename();
56 };
57 
58 #endif // DIGIKAM_RENAME_CUSTOMIZER_UTEST_H
59