aau-giraf / web-api

The backend API for GIRAF — a .NET-core project written in C#.
GNU General Public License v3.0
2 stars 5 forks source link

Re: Test error controller257 #289

Closed Soupaa closed 2 years ago

Soupaa commented 2 years ago

Description

Unit tests have been written for 4/5 Error handling functions in ErrorController. The last unfinished unit test, which is for Error 404 has not been written, as the correct solution to solve this specific area cannot be identified within the given time constraint.

Therefore this pull request contains these unit tests:

Unit test for Error 401 Unauthorized Unit test for Error 403 Forbidden Unit test for Error 400 BadRequest Unit test for Error UnknownError

Fixes #\ Part of Issue https://github.com/aau-giraf/web-api/issues/257

Type of change

Delete unchecked boxes (only for Type of change)

How Has This Been Tested?

The four unit tests has been written with xUnit. Therefore this issue is mainly about testing the existing function within ErrorController file.

The testing was conducted with the xUnit "Run Test" and "Run All Tests" buttons.

Development Configuration

Flutter version: 2.0.5 Dart version: 2.12.3

Checklist: