Debian Codegraph @

Source/Test/CReasonerTestfileTest.cpp

raw
1 /*
2 * Copyright (C) 2013-2015, 2019 by the Konclude Developer Team.
3 *
4 * This file is part of the reasoning system Konclude.
5 * For details and support, see <http://konclude.com/>.
6 *
7 * Konclude is free software: you can redistribute it and/or modify
8 * it under the terms of version 3 of the GNU Lesser General Public
9 * License (LGPLv3) as published by the Free Software Foundation.
10 *
11 * Konclude is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU (Lesser) General Public License for more details.
15 *
16 * You should have received a copy of the GNU (Lesser) General Public
17 * License along with Konclude. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21 #include "CReasonerTestfileTest.h"
22
23
24 namespace Konclude {
25
26 namespace Test {
27
28
29
30 CReasonerTestfileTest::CReasonerTestfileTest() {
31 testExeCount = 1;
32 timeout = 0;
33 testResult = new CReasonerTestfileTestResult();
34 }
35
36
37 CReasonerTestfileTest::~CReasonerTestfileTest() {
38 delete testResult;
39 }
40
41
42 QString CReasonerTestfileTest::getTestRequestFile() {
43 return testRequestFile;
44 }
45
46 CReasonerTestfileTest *CReasonerTestfileTest::setTestRequestFile(const QString &requestFile) {
47 testRequestFile = requestFile;
48 return this;
49 }
50
51 bool CReasonerTestfileTest::hasTestRequestFile() {
52 return !testRequestFile.isEmpty();
53 }
54
55
56 QString CReasonerTestfileTest::getTestExpectedResponseFile() {
57 return expectedResponseFile;
58 }
59
60 CReasonerTestfileTest *CReasonerTestfileTest::setTestExpectedResponseFile(const QString &responseFile) {
61 expectedResponseFile = responseFile;
62 return this;
63 }
64
65 bool CReasonerTestfileTest::hasTestExpectedResponseFile() {
66 return !expectedResponseFile.isEmpty();
67 }
68
69
70 qint64 CReasonerTestfileTest::getTestLoopCount() {
71 return testExeCount;
72 }
73
74 CReasonerTestfileTest *CReasonerTestfileTest::setTestLoopCount(qint64 loopCount) {
75 testExeCount = loopCount;
76 return this;
77 }
78
79 CReasonerTestfileTestResult *CReasonerTestfileTest::getTestResults() {
80 return testResult;
81 }
82
83 QString CReasonerTestfileTest::getWorkingDirectory() {
84 return workDir;
85 }
86
87 CReasonerTestfileTest *CReasonerTestfileTest::setWorkingDirectory(const QString &workingDir) {
88 workDir = workingDir;
89 return this;
90 }
91
92 bool CReasonerTestfileTest::hasWorkingDirectory() {
93 return !workDir.isEmpty();
94 }
95
96 qint64 CReasonerTestfileTest::getTimeout() {
97 return timeout;
98 }
99
100 CReasonerTestfileTest *CReasonerTestfileTest::setTimeout(qint64 testTimeout) {
101 timeout = testTimeout;
102 return this;
103 }
104
105
106 }; // end namespace Test
107
108 }; // end namespace Konclude