refs #675 default URL for bootstrap file

* CApplication now has member function isUnitTest
* bootstrap URL has hardcoded default URL when running as unit test
* unit tests are automatically marked as "running in dev. environment"
This commit is contained in:
Klaus Basan
2016-06-15 22:26:55 +02:00
parent ef1b7b2c21
commit ce7362a9d9
4 changed files with 48 additions and 21 deletions

View File

@@ -86,7 +86,8 @@ namespace BlackCore
Laucher,
PilotClientCore,
PilotClientGui,
MappingTool
MappingTool,
UnitTest
};
//! Similar to \sa QCoreApplication::instance() returns the single instance
@@ -110,6 +111,9 @@ namespace BlackCore
//! swift application running
SwiftApplication getSwiftApplication() const;
//! Unit test?
bool isUnitTest() const;
//! Global setup
//! \threadsafe
BlackCore::Data::CGlobalSetup getGlobalSetup() const;
@@ -397,6 +401,7 @@ namespace BlackCore
bool m_useWebData = false; //!< use web data
bool m_signalStartup = true; //!< signal startup automatically
bool m_devEnv = false; //!< dev. environment
bool m_unitTest = false; //!< is UNIT test
};
} // namespace