Commit Graph

25 Commits

Author SHA1 Message Date
Klaus Basan
7f3643fb0e Ref T105, use enabled in CContinuousWorker
* removed slots
* getName
2017-09-24 19:50:06 +01:00
Klaus Basan
5c32a912f3 Based on unit test failure (clang):
* now ignore incomplete entities for airline/aircraft ICAOs from DB
* utility functions to find invalid designators
* adjusted unit test, avoid taking a random element
* and fixed 4 wrong ICAO entries in DB
2017-04-18 00:08:08 +01:00
Mathew Sutcliffe
6c36cd202b refs #837 ICoordinateGeodetic::geodeticHeight is a CAltitude. 2017-01-10 23:44:34 +00:00
Klaus Basan
8f779fff35 refs #787, fixed unit test
* flag update for non cached scenarios was missing
* some minor adjustments of test readers
2016-12-13 19:01:37 +01:00
Klaus Basan
dff8db131f refs #780, "qUtf8Printable" fixes
https://dev.vatsim-germany.org/issues/780#note-9 number 2
2016-12-13 19:00:11 +01:00
Klaus Basan
9bf1833aac Improved messages in reader UNIT test
* info about URL connected
* reflect changes in global setup for airport reader
2016-12-06 09:33:39 +01:00
Michał Garapich
9acfb89e65 refs #748 Add operating attribute to CAirport 2016-10-17 14:34:33 +01:00
Michał Garapich
cf3e9f1f67 refs #748 Support database format in CAirportDataReader
* CAirport is now database object
* CAirportList is now datastore object list
* CAirportDataReader adjustments
2016-10-17 14:34:31 +01:00
Michał Garapich
a4b5b28cc1 refs #748 Move CAirportDataReader to the db/ subdirectory
* BlackCore::CAirportDataReader -> BlackCore::Db::CAirportDataReader
* fix typo in CDatabaseReader
2016-10-17 14:34:30 +01:00
Klaus Basan
67fdfd228a Minor improvements for reader unit test
* URL in verify msg.
* qWait when reading
2016-09-19 16:18:56 +02:00
Michał Garapich
1032b2f506 refs #650 Implement CAirportDataReader
* Add BlackCore::CAirportDataReader class
* Add cache traits for airport list
* Add corresponding WebReaderFlag
* Add CAirport::convertFromDatabaseJson()
* Add CApplication::headerFromNetwork() to handle HTTP HEAD method
2016-08-26 00:18:41 +02:00
Roland Winklmeier
ef1b7b2c21 Use QSKIP to flag a test 'skipped', if server is not reachable
refs #682
2016-06-22 14:23:07 +02:00
Klaus Basan
54b1234f7f refs #649, refs #658 fixed includes to new subfolders "db"
some style changes in same step
2016-06-08 18:20:23 +02:00
Roland Winklmeier
4f8205e585 Fix unit test header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
2016-05-20 01:32:26 +02:00
Klaus Basan
87a0c75f43 refs #621, use getXX for setup members, no idea why I have not used our standard 2016-03-30 13:41:44 +02:00
Klaus Basan
f124412896 refs #605, fixed unit test itself
* threaded reader were normal members causing a crash when those were moved in their own thread
* we need own event processing for unit test
* Network request needs to be generated in main thread
* don`t shutdown readers on QCoreApplication::aboutToQuit, let CApplication handle it
* use CApplication in unit test (as in real world)

Unrelated:
* access global setup via application
2016-03-18 01:09:17 +00:00
Roland Winklmeier
d1eb0bb9c3 Add tests to doxygen group 'tests' and subgroups
refs #594
2016-02-16 20:01:44 +01:00
Roland Winklmeier
1ea2f34f75 Fix doxygen documentation in src, samples and tests
refs #594
2016-02-16 20:01:33 +01:00
Klaus Basan
46336e9cce refs #568, allow to read incremental data based on timestamp
* signatures with QDateTime
* flags
2016-01-28 16:31:44 +01:00
Klaus Basan
d131cd2d33 refs #507, changed setup reader and simplied global setup and setup reader
* a single base URL (shared), derived URLs by appended path
* simplified dir structure shared with sub directories
* renamed functions
* automatically synchronize setup with DB when initialized
* trigger download info loading when setup is completed
* allow to automatically read after setup data have been synchronized
* read DB data when setup has been loaded
* allow to reload from threaded reader
* improved handling (log messages, skip reading) when data are not available
2015-11-19 21:07:58 +00:00
Klaus Basan
85b7801bb9 refs #478, test adjust to new classes 2015-11-19 21:03:44 +00:00
Klaus Basan
2cfd3540b8 refs #469, renamed flags
* db to entity flags as it also features entities not from DB
* Flag enums singular (discussed with MS / slack)
2015-11-19 21:00:13 +00:00
Klaus Basan
3e1e1070c1 refs #452 updated tests/samples to reflect previous changes 2015-11-19 20:59:21 +00:00
Klaus Basan
938c0f3dc8 refs #445, settings for global network/readers values 2015-11-19 20:57:32 +00:00
Klaus Basan
edf8191969 refs #445, unit tests
* tests for DB reading
* adjusted other unit tests (livery, formatting, doxygen)
2015-11-19 20:57:18 +00:00