HTest library testing part

This commit is contained in:
The Coriolis Project 2009-02-02 11:14:03 +00:00
parent 42dfa164c7
commit a2e1fd4d97
1 changed files with 9 additions and 0 deletions

View File

@ -18,6 +18,15 @@ int main() {
cout << "Error in RootLibrary creation" << endl;
return 1;
}
try {
Library* rootLibrary2 = Library::create(db, Name("RootLibrary2"));
if (rootLibrary2) {
cout << "Error in RootLibrary creation" << endl;
return 1;
}
} catch (const Hurricane::Error& e) {
cout << e.what() << endl;
}
Library* workLibrary = Library::create(rootLibrary, Name("WorkLibrary"));
if (!workLibrary) {