| | |
| | | |
| | | #include <licensecc_properties.h> |
| | | #include <licensecc_properties_test.h> |
| | | #include <licensecc/datatypes.h> |
| | | |
| | | #include "../../src/library/api/datatypes.h" |
| | | #include "../../src/library/base/EventRegistry.h" |
| | | #include "../../src/library/os/os.h" |
| | | #include "../../src/library/LicenseReader.hpp" |
| | |
| | | BOOST_CHECK(!registry.isGood()); |
| | | BOOST_CHECK_EQUAL(0, licenseInfos.size()); |
| | | BOOST_ASSERT(registry.getLastFailure() != NULL); |
| | | BOOST_CHECK_EQUAL(ENVIRONMENT_VARIABLE_NOT_DEFINED, registry.getLastFailure()->event_type); |
| | | BOOST_CHECK_MESSAGE((ENVIRONMENT_VARIABLE_NOT_DEFINED == registry.getLastFailure()->event_type) || |
| | | (LICENSE_FILE_NOT_FOUND == registry.getLastFailure()->event_type), |
| | | "error as expected"); |
| | | } |
| | | |
| | | /** |