refs #192, some housekeeping during the JSON introduction

* removed unused tryGet methods for transponder / COM
* adjusted unit tests
This commit is contained in:
Klaus Basan
2014-03-26 18:55:40 +01:00
parent e2461cb67c
commit 57435b2a73
5 changed files with 60 additions and 290 deletions

View File

@@ -71,13 +71,15 @@ namespace BlackMiscTest
CValueMap vmWildcard(true);
CValueMap vmNoWildcard(false);
CValueMap vm;
vm.addValue(CAtcStation::IndexController, CUser("123456", "Joe Doe"));
// remark: Shortcoming here, as the callsign will automatically set for user in station
// I have to set this as well, otherwise, not match.
vm.addValue(CAtcStation::IndexController, CUser("123456", "Joe Doe", CCallsign("EDDMTWR")));
// compare
QVERIFY2(vmWildcard == station1, "Station should be equal to wildcard");
QVERIFY2(station1 != vmNoWildcard, "Station should not be equal to empty list");
QVERIFY2(station1 == vm, "Controller should match");
}
} //namespace BlackMiscTest