Реализовать модульные тесты #104

Open
opened 2019-04-17 19:06:21 +04:00 by romanov73 · 36 comments
romanov73 commented 2019-04-17 19:06:21 +04:00 (Migrated from gitlab.com)

Реализовать модульные тесты на проверку бизнес логики.

Тесты должны быть не интеграционными, в отличии от задачи #103.

Тесты проверяют только работу логики сервисов. Поэтому были установлены требования, что в них (upd. 11.05.2019: в контроллерах) не реализуется логика, только передача данных.

Работа с БД и файловой системой мокается см. пример

Ссылки: 1,
2,
3,
4
5

Протестированные модули (отметка ставится по выполнению):

  • Статьи
  • Гранты
  • Проекты
  • Конференции
  • Работа со студентами
  • Личный кабинет
Реализовать модульные тесты на проверку бизнес логики. Тесты должны быть не интеграционными, в отличии от задачи #103. Тесты проверяют только работу логики сервисов. Поэтому были установлены требования, что в них (`upd. 11.05.2019: в контроллерах`) не реализуется логика, только передача данных. Работа с БД и файловой системой мокается [см. пример](https://www.baeldung.com/injecting-mocks-in-spring) Ссылки: [1](https://jsehelper.blogspot.com/2016/01/junit.html), [2](https://habr.com/ru/post/134836/), [3](http://www.springboottutorial.com/spring-boot-unit-testing-and-mocking-with-mockito-and-junit), [4](https://habr.com/ru/post/169381/) [5](http://merle-amber.blogspot.com/2008/09/mock.html) Протестированные модули (отметка ставится по выполнению): * [ ] Статьи * [x] Гранты * [ ] Проекты * [x] Конференции * [x] Работа со студентами * [ ] Личный кабинет
romanov73 commented 2019-04-17 19:06:26 +04:00 (Migrated from gitlab.com)

changed due date to May 11, 2019

changed due date to May 11, 2019
romanov73 commented 2019-05-11 22:50:25 +04:00 (Migrated from gitlab.com)

changed the description

changed the description
VladimirZarayskiy commented 2019-05-12 14:04:09 +04:00 (Migrated from gitlab.com)

mentioned in merge request !92

mentioned in merge request !92
VladimirZarayskiy commented 2019-05-12 14:04:09 +04:00 (Migrated from gitlab.com)

created merge request !92 to address this issue

created merge request !92 to address this issue
VladimirZarayskiy commented 2019-05-14 00:03:26 +04:00 (Migrated from gitlab.com)

mentioned in commit 9da5fd8a7a

mentioned in commit 9da5fd8a7a8ae3d4f8fff8aea2d5349f1fc3ca2a
VladimirZarayskiy commented 2019-05-14 16:21:47 +04:00 (Migrated from gitlab.com)

mentioned in commit 3a9fde3404

mentioned in commit 3a9fde3404bd3422dabde9a2a5459508bd043765
VladimirZarayskiy commented 2019-05-14 17:49:48 +04:00 (Migrated from gitlab.com)

mentioned in commit a8d987b01f

mentioned in commit a8d987b01f5e62f3a48652c248c7f55904518e00
VladimirZarayskiy commented 2019-05-14 17:54:40 +04:00 (Migrated from gitlab.com)

mentioned in commit e6cb991463

mentioned in commit e6cb991463b4a6d0eb549d6dc9418b63b5fc97e0
VladimirZarayskiy commented 2019-05-14 18:03:10 +04:00 (Migrated from gitlab.com)

mentioned in commit 1c5c05b5e4

mentioned in commit 1c5c05b5e466ff364d9e335615018b03151e39a1
VladimirZarayskiy commented 2019-05-14 18:20:25 +04:00 (Migrated from gitlab.com)

mentioned in commit c88c77cd7d

mentioned in commit c88c77cd7db6800f8d0df39351a0f54916ad02f2
VladimirZarayskiy commented 2019-05-14 18:51:33 +04:00 (Migrated from gitlab.com)

mentioned in commit 11cab955b4

mentioned in commit 11cab955b4d51bbc3b11413a0e0d844b05edfb5a
VladimirZarayskiy commented 2019-05-15 00:54:51 +04:00 (Migrated from gitlab.com)

mentioned in commit 00c5d5f755

mentioned in commit 00c5d5f755732ec8b22922df44ec8aa7b5e4bbd7
VladimirZarayskiy commented 2019-05-15 01:14:23 +04:00 (Migrated from gitlab.com)

mentioned in commit 7952787229

mentioned in commit 7952787229fa31ec706ce6491ab5db8e5f72307f
VladimirZarayskiy commented 2019-05-16 13:34:19 +04:00 (Migrated from gitlab.com)

mentioned in commit ce7b4c9c7a

mentioned in commit ce7b4c9c7a81d0752efc61a94a9216828aa5afd9
VladimirZarayskiy commented 2019-05-16 15:35:39 +04:00 (Migrated from gitlab.com)

mentioned in commit c0937d721a

mentioned in commit c0937d721a2801efeb0b9a179ffaf9d08338f89b
VladimirZarayskiy commented 2019-05-16 15:55:34 +04:00 (Migrated from gitlab.com)

mentioned in commit bde9cb51fb

mentioned in commit bde9cb51fb20944b340792e8bb54b8d6cbec329a
VladimirZarayskiy commented 2019-05-16 16:31:18 +04:00 (Migrated from gitlab.com)

mentioned in commit 80de18d3ee

mentioned in commit 80de18d3eeca5434490107b796b92fd7d7e10010
VladimirZarayskiy commented 2019-05-16 17:55:39 +04:00 (Migrated from gitlab.com)

mentioned in commit 5263393379

mentioned in commit 526339337935f7913070fcfb9549ee667c31d8a1
VladimirZarayskiy commented 2019-05-16 18:07:22 +04:00 (Migrated from gitlab.com)

mentioned in commit dc34c7bfb7

mentioned in commit dc34c7bfb7944a04403cf0f3f2c67136471df979
romanov73 commented 2019-05-17 11:28:18 +04:00 (Migrated from gitlab.com)

changed the description

changed the description
ashette commented 2019-05-23 00:24:42 +04:00 (Migrated from gitlab.com)

created merge request !107 to address this issue

created merge request !107 to address this issue
ashette commented 2019-05-23 00:24:42 +04:00 (Migrated from gitlab.com)

mentioned in merge request !107

mentioned in merge request !107
anastasiansh commented 2019-05-23 12:07:47 +04:00 (Migrated from gitlab.com)

mentioned in commit 284a3f51e9

mentioned in commit 284a3f51e9539c27db16825145815006c1d510ab
anastasiansh commented 2019-05-23 14:34:27 +04:00 (Migrated from gitlab.com)

mentioned in commit ef521123dd

mentioned in commit ef521123dd157ea0381d2b6699be4ac9569e295e
anastasiansh commented 2019-05-23 16:17:16 +04:00 (Migrated from gitlab.com)

mentioned in commit 82e454a50b

mentioned in commit 82e454a50b8b209d0e0eb771e62ea3a864c0dbcc
anastasiansh commented 2019-05-23 16:45:23 +04:00 (Migrated from gitlab.com)

mentioned in commit ab17b9f152

mentioned in commit ab17b9f1521e498d7bea148935e48cfa675f1b5e
romanov73 commented 2019-05-24 10:37:16 +04:00 (Migrated from gitlab.com)

marked the task Работа со студентами as completed

marked the task **Работа со студентами** as completed
SemenovaMasha commented 2019-06-02 21:30:05 +04:00 (Migrated from gitlab.com)

created merge request !112 to address this issue

created merge request !112 to address this issue
SemenovaMasha commented 2019-06-02 21:30:05 +04:00 (Migrated from gitlab.com)

mentioned in merge request !112

mentioned in merge request !112
SemenovaMasha commented 2019-06-03 00:11:44 +04:00 (Migrated from gitlab.com)

mentioned in commit f1ca0418fe

mentioned in commit f1ca0418fe9c188853af2b36a7a66e873fd2603b
tatyana_belousova commented 2019-06-07 17:22:33 +04:00 (Migrated from gitlab.com)

mentioned in merge request !115

mentioned in merge request !115
tatyana_belousova commented 2019-06-07 17:22:33 +04:00 (Migrated from gitlab.com)

created merge request !115 to address this issue

created merge request !115 to address this issue
tatyana_belousova commented 2019-06-07 20:55:01 +04:00 (Migrated from gitlab.com)

mentioned in commit 51ed732ae8

mentioned in commit 51ed732ae85aba74d0e8dd2be1198eb4ceae365c
tatyana_belousova commented 2019-06-07 20:56:11 +04:00 (Migrated from gitlab.com)

mentioned in commit 888fecf687

mentioned in commit 888fecf687ef69f8c81657abe1deb1108f457ed5
tatyana_belousova commented 2019-06-07 22:39:29 +04:00 (Migrated from gitlab.com)

mentioned in commit e4f5bede2a

mentioned in commit e4f5bede2aa1cab56c82c4ac24081250b70f9902
romanov73 commented 2019-06-08 10:01:55 +04:00 (Migrated from gitlab.com)

marked the task Гранты as completed

marked the task **Гранты** as completed
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: romanov73/ng-tracker#104
No description provided.