Skip to content

updated happy and sad path tests

f357975
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Added Happy and Sad Path tests for restful e-commerce APIs #24

updated happy and sad path tests
f357975
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Test Results succeeded Sep 23, 2024 in 0s

Test Results ✔️

Tests passed successfully

✔️ target/surefire-reports/TEST-TestSuite.xml

30 tests were completed in 14s with 30 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
TestSuite 30✔️ 14s

✔️ TestSuite

io.github.mfaisalkhatri.api.reqres.tests.ApiTests
  ✔️ testGetAPI
  ✔️ testPatchAPI
  ✔️ testDeleteAPI
  ✔️ testPutAPI
  ✔️ testPostAPI
io.github.mfaisalkhatri.api.restfulbooker.tests.RestfulBookerEndToEndTests
  ✔️ createBookingTest
  ✔️ getBookingTest
  ✔️ generateTokenTest
  ✔️ updateBookingTest
  ✔️ updatePartialBookingTest
  ✔️ deleteBookingTest
  ✔️ testBookingDeleted
io.github.mfaisalkhatri.api.restfulecommerce.SadPathTests
  ✔️ testShouldNotCreateOrder_WhenProductIdFieldIsMissing
  ✔️ testShouldNotCreateOrder_WhenOrderListIsNotArray
  ✔️ testShouldNotFetchOrder_WhenNoOrderExists
  ✔️ testShouldNotFetchOrder_WhenNoOrderExistsForOrderId
  ✔️ testShouldNotFetchOrder_WhenNoOrderExistsForUserId
  ✔️ testShouldNotFetchOrder_WhenNoOrderExistsForProductId
io.github.mfaisalkhatri.api.restfulecommerce.HappyPathTests
  ✔️ testShouldPerformHealthCheckOfServer
  ✔️ testShouldCreateNewOrders
  ✔️ testShouldGetAllOrders
  ✔️ testShouldGetOrderUsingOrderId
  ✔️ testShouldGetOrdersUsingUserId
  ✔️ testShouldGetOrdersUsingProductId
  ✔️ testShouldGetOrdersUsingOrderIdProductIdAndUserId
  ✔️ testTokenGeneration
  ✔️ testShouldUpdateTheOrderUsingPut
  ✔️ testShouldUpdateTheOrderUsingPatch
  ✔️ testShouldDeleteTheOrder
  ✔️ testShouldNotRetrieveDeletedOrder