marcinadd / projecty-web

Project management software based on spring
GNU General Public License v3.0
76 stars 76 forks source link

Update the testing capabilities on JUnit by having testcontainers #43

Closed fokion closed 4 years ago

fokion commented 5 years ago

Description

Add the test containers that will setup and tear down a database on each test. This will make the testing more reliable as it will use an actual database and not mocking.

Requirements

fokion commented 5 years ago

@marcinadd I dont know why on the registration it was accepting the parameters as url encoded parameters on a POST request which was bizzare. I have updated the code to handle the POST body but the web project needs to be updated as well to reflect this change.

marcinadd commented 5 years ago

All mappings should be refactored to use JSON format. Another problem is the query parameters. Idk from where I took the idea of query params instead of URL params but it generates more issues than advantages. Today I'll create a new branch and try to edit them all for API, Web version and Android version as well. If all mappings in all apps will be changed the changes will be merged to default branches.

marcinadd commented 4 years ago

Merged