Skip to content

Automatic Testing

mabdalazez edited this page Jun 22, 2018 · 2 revisions

in the we are writing a unit tests for the classes we create and its running everytime we push it to the github for the Continuous integration. the regular unit Tests i will not talk about it here because every one know it but i will talk about testing the controller. to test the controller we need a running server to send http requests to,but in the github we cannot run the server everytime we push , so we has used a Mockito FrameWork that integrates with SpringBoot to mock the server and solve his dependency injection problem with mocking the Objects that he takes like MongoDB server or PasswordEncryptor. you can read about testing the controller here.

Clone this wiki locally