O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A huge step for humanity

Congratulations! Our first acceptance test has been written. Here is the entire test:

void Usecases_check_available_groceries::test_one_or_more_grocery_items_available(){    // Given there is a list of available grocery items    auto groceryItems = new entities::GroceryItems(this);    QVERIFY(groceryItems);    // And one or more grocery items are actually available    auto groceryItemsRepoDummy = new repositories::GroceryItemsRepoDummy(groceryItems);    groceryItems->setRepository(groceryItemsRepoDummy);    QVERIFY(groceryItemsRepoDummy->count() > 0);    // When I check available groceries    auto checkAvailableGroceries = new usecases::CheckAvailableGroceries(groceryItems, this); QSignalSpy checkAvailableGroceriesSuccess(checkAvailableGroceries, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required