Browse Source

- implemented has_*(), get_*() and set_*()

- added testcass
master
Andreas Romeyke 2 years ago
parent
commit
137dfafb2b
2 changed files with 310 additions and 183 deletions
  1. +222
    -0
      src/lib/bagmetadata.cpp
  2. +88
    -183
      test/test_bagmetadata.cpp

+ 222
- 0
src/lib/bagmetadata.cpp View File

@@ -123,6 +123,10 @@ oxum_t Bagmetadata::get_PayloadOxum() {
return oxum;
}

void Bagmetadata::set_PayloadOxum( oxum_t oxum ) {
this->metadata[ "Payload-Oxum" ] = to_string( oxum.octetcount ) + "." + to_string( oxum.streamcount );
}

bool Bagmetadata::store( string basedir ) {
fs::path p{ basedir };
fs::file_status s = fs::status( p );
@@ -146,6 +150,224 @@ void Bagmetadata::get_logstream( stringstream & log ) {
log << this->log.rdbuf();
}

////////
bool Bagmetadata::has_SourceOrganization() {
map<string, string>::iterator it;
it = this->metadata.find("SourceOrganization");
if(it != this->metadata.end()) { return true; }
return false;
}
bool Bagmetadata::has_OrganizationAddress() {
map<string, string>::iterator it;
it = this->metadata.find("OrganizationAddress");
if(it != this->metadata.end()) { return true; }
return false;
}
bool Bagmetadata::has_ContactName() {
map<string, string>::iterator it;
it = this->metadata.find("ContactName");
if(it != this->metadata.end()) { return true; }
return false;
}
bool Bagmetadata::has_ContactPhone() {
map<string, string>::iterator it;
it = this->metadata.find("ContactPhone");
if(it != this->metadata.end()) { return true; }
return false;
}
bool Bagmetadata::has_ContactEmail() {
map<string, string>::iterator it;
it = this->metadata.find("ContactEmail");
if(it != this->metadata.end()) { return true; }
return false;
}
bool Bagmetadata::has_ExternalDescription() {
map<string, string>::iterator it;
it = this->metadata.find("ExternalDescription");
if(it != this->metadata.end()) { return true; }
return false;
}
bool Bagmetadata::has_BaggingDate() {
map<string, string>::iterator it;
it = this->metadata.find("BaggingDate");
if(it != this->metadata.end()) { return true; }
return false;
}
bool Bagmetadata::has_ExternalIdentifier() {
map<string, string>::iterator it;
it = this->metadata.find("ExternalIdentifier");
if(it != this->metadata.end()) { return true; }
return false;
}
bool Bagmetadata::has_BagSize() {
map<string, string>::iterator it;
it = this->metadata.find("BagSize");
if(it != this->metadata.end()) { return true; }
return false;
}
bool Bagmetadata::has_BagGroupIdentifier() {
map<string, string>::iterator it;
it = this->metadata.find("BagGroupIdentifier");
if(it != this->metadata.end()) { return true; }
return false;
}
bool Bagmetadata::has_BagCount() {
map<string, string>::iterator it;
it = this->metadata.find("BagCount");
if(it != this->metadata.end()) { return true; }
return false;
}
bool Bagmetadata::has_InternalSenderIdentifier() {
map<string, string>::iterator it;
it = this->metadata.find("InternalSenderIdentifier");
if(it != this->metadata.end()) { return true; }
return false;
}
bool Bagmetadata::has_InternalSenderDescription() {
map<string, string>::iterator it;
it = this->metadata.find("InternalSenderDescription");
if(it != this->metadata.end()) { return true; }
return false;
}


string Bagmetadata::get_SourceOrganization() {
map<string, string>::iterator it;
it = this->metadata.find("SourceOrganization");
if(it != this->metadata.end()) { return it->second; }
return "";
}
string Bagmetadata::get_OrganizationAddress() {
map<string, string>::iterator it;
it = this->metadata.find("OrganizationAddress");
if(it != this->metadata.end()) { return it->second; }
return "";
}
string Bagmetadata::get_ContactName() {
map<string, string>::iterator it;
it = this->metadata.find("ContactName");
if(it != this->metadata.end()) { return it->second; }
return "";
}
string Bagmetadata::get_ContactPhone() {
map<string, string>::iterator it;
it = this->metadata.find("ContactPhone");
if(it != this->metadata.end()) { return it->second; }
return "";
}
string Bagmetadata::get_ContactEmail() {
map<string, string>::iterator it;
it = this->metadata.find("ContactEmail");
if(it != this->metadata.end()) { return it->second; }
return "";
}
string Bagmetadata::get_ExternalDescription() {
map<string, string>::iterator it;
it = this->metadata.find("ExternalDescription");
if(it != this->metadata.end()) { return it->second; }
return "";
}
string Bagmetadata::get_BaggingDate() {
map<string, string>::iterator it;
it = this->metadata.find("BaggingDate");
if(it != this->metadata.end()) { return it->second; }
return "";
}
string Bagmetadata::get_ExternalIdentifier() {
map<string, string>::iterator it;
it = this->metadata.find("ExternalIdentifier");
if(it != this->metadata.end()) { return it->second; }
return "";
}
string Bagmetadata::get_BagSize() {
map<string, string>::iterator it;
it = this->metadata.find("BagSize");
if(it != this->metadata.end()) { return it->second; }
return "";
}
string Bagmetadata::get_BagGroupIdentifier() {
map<string, string>::iterator it;
it = this->metadata.find("BagGroupIdentifier");
if(it != this->metadata.end()) { return it->second; }
return "";
}
string Bagmetadata::get_BagCount() {
map<string, string>::iterator it;
it = this->metadata.find("BagCount");
if(it != this->metadata.end()) { return it->second; }
return "";
}
string Bagmetadata::get_InternalSenderIdentifier() {
map<string, string>::iterator it;
it = this->metadata.find("InternalSenderIdentifier");
if(it != this->metadata.end()) { return it->second; }
return "";
}
string Bagmetadata::get_InternalSenderDescription() {
map<string, string>::iterator it;
it = this->metadata.find("InternalSenderDescription");
if(it != this->metadata.end()) { return it->second; }
cout <<"ITD: NOT FOUND"<< endl;
return "NOTFOUND";
}

void Bagmetadata::set_SourceOrganization(string SourceOrganization) {
this->metadata["SourceOrganization"] = SourceOrganization;
}

void Bagmetadata::set_OrganizationAddress(string OrganizationAddress) {
this->metadata["OrganizationAddress"] = OrganizationAddress;
}

void Bagmetadata::set_ContactName(string ContactName) {
this->metadata["ContactName"] = ContactName;
}

void Bagmetadata::set_ContactPhone(string ContactPhone) {
this->metadata["ContactPhone"] = ContactPhone;
}

void Bagmetadata::set_ContactEmail(string ContactEmail) {
this->metadata["ContactEmail"] = ContactEmail;
}

void Bagmetadata::set_ExternalDescription(string ExternalDescription) {
this->metadata["ExternalDescription"] = ExternalDescription;
}

void Bagmetadata::set_BaggingDate(string BaggingDate) {
this->metadata["BaggingDate"] = BaggingDate;
}

void Bagmetadata::set_ExternalIdentifier(string ExternalIdentifier) {
this->metadata["ExternalIdentifier"] = ExternalIdentifier;
}

void Bagmetadata::set_BagSize(string BagSize) {
this->metadata["BagSize"] = BagSize;
}

void Bagmetadata::set_BagGroupIdentifier(string BagGroupIdentifier) {
this->metadata["BagGroupIdentifier"] = BagGroupIdentifier;
}

void Bagmetadata::set_BagCount(string BagCount) {
this->metadata["BagCount"] = BagCount;
}

void Bagmetadata::set_InternalSenderIdentifier(string InternalSenderIdentifier) {
this->metadata["InternalSenderIdentifier"] = InternalSenderIdentifier;
}

void Bagmetadata::set_InternalSenderDescription(string InternalSenderDescription) {
this->metadata["InternalSenderDescription"] = InternalSenderDescription;
}




////////

void Bagmetadata::reset_logstream() {
this->log.str(std::string());
}


+ 88
- 183
test/test_bagmetadata.cpp View File

@@ -77,217 +77,150 @@ bool check_store( string dir_load_from, string dir_store_to ) {
//


bool check_set_SourceOrganization(string dir, string expected) {
bool check_set_has_get_SourceOrganization(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_SourceOrganization( expected );
if (!p.has_SourceOrganization() ) {
return false;
}

string result = p.get_SourceOrganization();
return (0 == expected.compare( result ) );
}
bool check_set_OrganizationAddress(string dir, string expected) {
bool check_set_has_get_OrganizationAddress(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_OrganizationAddress( expected );
if (!p.has_OrganizationAddress() ) {
return false;
}

string result = p.get_OrganizationAddress();
return (0 == expected.compare( result ) );
}
bool check_set_ContactName(string dir, string expected) {
bool check_set_has_get_ContactName(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_ContactName( expected );
if (!p.has_ContactName() ) {
return false;
}

string result = p.get_ContactName();
return (0 == expected.compare( result ) );
}
bool check_set_ContactPhone(string dir, string expected) {
bool check_set_has_get_ContactPhone(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_ContactPhone( expected );
if (!p.has_ContactPhone() ) {
return false;
}

string result = p.get_ContactPhone();
return (0 == expected.compare( result ) );
}
bool check_set_ContactEmail(string dir, string expected) {
bool check_set_has_get_ContactEmail(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_ContactEmail( expected );
if (!p.has_ContactEmail() ) {
return false;
}

string result = p.get_ContactEmail();
return (0 == expected.compare( result ) );
}
bool check_set_ExternalDescription(string dir, string expected) {
bool check_set_has_get_ExternalDescription(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_ExternalDescription( expected );
if (!p.has_ExternalDescription() ) {
return false;
}

string result = p.get_ExternalDescription();
return (0 == expected.compare( result ) );
}
bool check_set_BaggingDate(string dir, string expected) {
bool check_set_has_get_BaggingDate(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_BaggingDate( expected );
if (!p.has_BaggingDate() ) {
return false;
}

string result = p.get_BaggingDate();
return (0 == expected.compare( result ) );
}
bool check_set_ExternalIdentifier(string dir, string expected) {
bool check_set_has_get_ExternalIdentifier(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_ExternalIdentifier( expected );
if (!p.has_ExternalIdentifier() ) {
return false;
}

string result = p.get_ExternalIdentifier();
return (0 == expected.compare( result ) );
}
bool check_set_BagSize(string dir, string expected) {
bool check_set_has_get_BagSize(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_BagSize( expected );
if (!p.has_BagSize() ) {
return false;
}

string result = p.get_BagSize();
return (0 == expected.compare( result ) );
}
bool check_set_PayloadOxum(string dir, oxum_t expected) {
bool check_set_has_get_PayloadOxum(string dir, oxum_t expected) {
Bagmetadata p( std::move(dir) );
p.set_PayloadOxum( expected );
if (!p.has_PayloadOxum() ) {
return false;
}

oxum_t result = p.get_PayloadOxum();

return (expected.octetcount == result.octetcount
&& expected.streamcount == result.streamcount
);
&& expected.streamcount == result.streamcount
);
}
bool check_set_BagGroupIdentifier(string dir, string expected) {
bool check_set_has_get_BagGroupIdentifier(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_BagGroupIdentifier( expected );
if (!p.has_BagGroupIdentifier() ) {
return false;
}

string result = p.get_BagGroupIdentifier();
return (0 == expected.compare( result ) );
}
bool check_set_BagCount(string dir, string expected) {
bool check_set_has_get_BagCount(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_BagCount( expected );
if (!p.has_BagCount() ) {
return false;
}

string result = p.get_BagCount();
return (0 == expected.compare( result ) );
}
bool check_set_InternalSenderIdentifier(string dir, string expected) {
bool check_set_has_get_InternalSenderIdentifier(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_InternalSenderIdentifier( expected );
if (!p.has_InternalSenderIdentifier() ) {
return false;
}

string result = p.get_InternalSenderIdentifier();
return (0 == expected.compare( result ) );
}
bool check_set_InternalSenderDescription(string dir, string expected) {
bool check_set_has_get_InternalSenderDescription(string dir, string expected) {
Bagmetadata p( std::move(dir) );
p.set_InternalSenderDescription( expected );
if (!p.has_InternalSenderDescription() ) {
return false;
}

string result = p.get_InternalSenderDescription();
return (0 == expected.compare( result ) );
}

//

bool check_has_SourceOrganization(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_SourceOrganization();
}
bool check_has_OrganizationAddress(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_OrganizationAddress();
}
bool check_has_ContactName(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_ContactName();
}
bool check_has_ContactPhone(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_ContactPhone();
}
bool check_has_ContactEmail(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_ContactEmail();
}
bool check_has_ExternalDescription(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_ExternalDescription();
}
bool check_has_BaggingDate(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_BaggingDate();
}
bool check_has_ExternalIdentifier(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_ExternalIdentifier();
}
bool check_has_BagSize(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_BagSize();
}
bool check_has_PayloadOxum(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_PayloadOxum();
}
bool check_has_BagGroupIdentifier(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_BagGroupIdentifier();
}
bool check_has_BagCount(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_BagCount();
}
bool check_has_InternalSenderIdentifier(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_InternalSenderIdentifier();
}
bool check_has_InternalSenderDescription(string dir) {
Bagmetadata p( std::move(dir) );
return p.has_InternalSenderDescription();
}

//
//
//

bool check_get_SourceOrganization(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_SourceOrganization() ));
}
bool check_get_OrganizationAddress(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_OrganizationAddress() ));
}
bool check_get_ContactName(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_ContactName() ));
}
bool check_get_ContactPhone(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_ContactPhone() ));
}
bool check_get_ContactEmail(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_ContactEmail() ));
}
bool check_get_ExternalDescription(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_ExternalDescription() ));
}
bool check_get_BaggingDate(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_BaggingDate() ));
}
bool check_get_ExternalIdentifier(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_ExternalIdentifier() ));
}
bool check_get_BagSize(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_BagSize() ));
}
bool check_get_PayloadOxum(string dir, oxum_t expected) {
Bagmetadata p ( std::move(dir) );
oxum_t result = p.get_PayloadOxum();
return (
result.octetcount == expected.octetcount
&& result.streamcount == expected.streamcount
);
}
bool check_get_BagGroupIdentifier(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_BagGroupIdentifier() ));
}
bool check_get_BagCount(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_BagCount() ));
}
bool check_get_InternalSenderIdentifier(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_InternalSenderIdentifier() ));
}
bool check_get_InternalSenderDescription(string dir, string expected) {
Bagmetadata p ( std::move(dir) );
return (0== expected.compare( p.get_InternalSenderDescription() ));
}

//
//
@@ -299,12 +232,11 @@ BOOST_AUTO_TEST_CASE(constructor3) {BOOST_TEST(check_constructor("/tmp/"));};
BOOST_AUTO_TEST_CASE(check_metadata_exists) {BOOST_TEST( check_has_metadata("../testbags/bag_minimal_ok/")); };

BOOST_AUTO_TEST_CASE(check_metadata) {BOOST_TEST( check_get_metadata("../testbags/bag_minimal_ok/")); };
BOOST_AUTO_TEST_CASE(check_oxum_exists) {BOOST_TEST( check_has_PayloadOxum("../testbags/bag_minimal_ok/")); };
BOOST_AUTO_TEST_CASE(check_oxum) {
oxum_t expected{};
expected.octetcount=38;
expected.streamcount=4;
BOOST_TEST( check_get_PayloadOxum("../testbags/bag_minimal_ok/", expected));
BOOST_TEST( check_set_has_get_PayloadOxum("../testbags/bag_minimal_ok/", expected));
};


@@ -318,47 +250,20 @@ BOOST_AUTO_TEST_CASE(check_store_ok) {BOOST_TEST(check_store("../testbags/bag_mi
//BOOST_AUTO_TEST_CASE(check_has_PayloadOxum_ok) {BOOST_TEST(check_has_PayloadOxum("../testbags_bag_minimal_ok/"));};
//BOOST_AUTO_TEST_CASE(check_get_PayloadOxum_ok) {BOOST_TEST(check_get_PayloadOxum("../testbags_bag_minimal_ok/"));};
//BOOST_AUTO_TEST_CASE(check_store_ok) {BOOST_TEST(check_store("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_set_SourceOrganization_ok) {BOOST_TEST(check_set_SourceOrganization("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_OrganizationAddress_ok) {BOOST_TEST(check_set_OrganizationAddress("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_ContactName_ok) {BOOST_TEST(check_set_ContactName("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_ContactPhone_ok) {BOOST_TEST(check_set_ContactPhone("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_ContactEmail_ok) {BOOST_TEST(check_set_ContactEmail("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_ExternalDescription_ok) {BOOST_TEST(check_set_ExternalDescription("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_BaggingDate_ok) {BOOST_TEST(check_set_BaggingDate("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_ExternalIdentifier_ok) {BOOST_TEST(check_set_ExternalIdentifier("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_BagSize_ok) {BOOST_TEST(check_set_BagSize("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_PayloadOxum_ok) {BOOST_TEST(check_set_PayloadOxum("../testbags_bag_minimal_ok/", {2,1}));};
BOOST_AUTO_TEST_CASE(check_set_BagGroupIdentifier_ok) {BOOST_TEST(check_set_BagGroupIdentifier("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_BagCount_ok) {BOOST_TEST(check_set_BagCount("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_InternalSenderIdentifier_ok) {BOOST_TEST(check_set_InternalSenderIdentifier("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_InternalSenderDescription_ok) {BOOST_TEST(check_set_InternalSenderDescription("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_has_SourceOrganization_ok) {BOOST_TEST(check_has_SourceOrganization("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_OrganizationAddress_ok) {BOOST_TEST(check_has_OrganizationAddress("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_ContactName_ok) {BOOST_TEST(check_has_ContactName("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_ContactPhone_ok) {BOOST_TEST(check_has_ContactPhone("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_ContactEmail_ok) {BOOST_TEST(check_has_ContactEmail("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_ExternalDescription_ok) {BOOST_TEST(check_has_ExternalDescription("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_BaggingDate_ok) {BOOST_TEST(check_has_BaggingDate("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_ExternalIdentifier_ok) {BOOST_TEST(check_has_ExternalIdentifier("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_BagSize_ok) {BOOST_TEST(check_has_BagSize("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_PayloadOxum_ok) {BOOST_TEST(check_has_PayloadOxum("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_BagGroupIdentifier_ok) {BOOST_TEST(check_has_BagGroupIdentifier("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_BagCount_ok) {BOOST_TEST(check_has_BagCount("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_InternalSenderIdentifier_ok) {BOOST_TEST(check_has_InternalSenderIdentifier("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_has_InternalSenderDescription_ok) {BOOST_TEST(check_has_InternalSenderDescription("../testbags_bag_minimal_ok/"));};
BOOST_AUTO_TEST_CASE(check_get_SourceOrganization_ok) {BOOST_TEST(check_get_SourceOrganization("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_get_OrganizationAddress_ok) {BOOST_TEST(check_get_OrganizationAddress("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_get_ContactName_ok) {BOOST_TEST(check_get_ContactName("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_get_ContactPhone_ok) {BOOST_TEST(check_get_ContactPhone("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_get_ContactEmail_ok) {BOOST_TEST(check_get_ContactEmail("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_get_ExternalDescription_ok) {BOOST_TEST(check_get_ExternalDescription("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_get_BaggingDate_ok) {BOOST_TEST(check_get_BaggingDate("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_get_ExternalIdentifier_ok) {BOOST_TEST(check_get_ExternalIdentifier("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_get_BagSize_ok) {BOOST_TEST(check_get_BagSize("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_get_PayloadOxum_ok) {BOOST_TEST(check_get_PayloadOxum("../testbags_bag_minimal_ok/", {2, 1}));};
BOOST_AUTO_TEST_CASE(check_get_BagGroupIdentifier_ok) {BOOST_TEST(check_get_BagGroupIdentifier("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_get_BagCount_ok) {BOOST_TEST(check_get_BagCount("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_get_InternalSenderIdentifier_ok) {BOOST_TEST(check_get_InternalSenderIdentifier("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_get_InternalSenderDescription_ok) {BOOST_TEST(check_get_InternalSenderDescription("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_SourceOrganization_ok) {BOOST_TEST(check_set_has_get_SourceOrganization("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_OrganizationAddress_ok) {BOOST_TEST(check_set_has_get_OrganizationAddress("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_ContactName_ok) {BOOST_TEST(check_set_has_get_ContactName("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_ContactPhone_ok) {BOOST_TEST(check_set_has_get_ContactPhone("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_ContactEmail_ok) {BOOST_TEST(check_set_has_get_ContactEmail("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_ExternalDescription_ok) {BOOST_TEST(check_set_has_get_ExternalDescription("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_BaggingDate_ok) {BOOST_TEST(check_set_has_get_BaggingDate("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_ExternalIdentifier_ok) {BOOST_TEST(check_set_has_get_ExternalIdentifier("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_BagSize_ok) {BOOST_TEST(check_set_has_get_BagSize("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_PayloadOxum_ok) {BOOST_TEST(check_set_has_get_PayloadOxum("../testbags_bag_minimal_ok/", {2,1}));};
BOOST_AUTO_TEST_CASE(check_set_has_get_BagGroupIdentifier_ok) {BOOST_TEST(check_set_has_get_BagGroupIdentifier("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_BagCount_ok) {BOOST_TEST(check_set_has_get_BagCount("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_InternalSenderIdentifier_ok) {BOOST_TEST(check_set_has_get_InternalSenderIdentifier("../testbags_bag_minimal_ok/", "test"));};
BOOST_AUTO_TEST_CASE(check_set_has_get_InternalSenderDescription_ok) {BOOST_TEST(check_set_has_get_InternalSenderDescription("../testbags_bag_minimal_ok/", "test"));};


// vim: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab

Loading…
Cancel
Save