File tree Expand file tree Collapse file tree 14 files changed +0
-58
lines changed
java/api/src/test/java/com/exadel/frs/core/trainservice Expand file tree Collapse file tree 14 files changed +0
-58
lines changed Original file line number Diff line number Diff line change 1010import com .exadel .frs .commonservice .sdk .faces .feign .dto .FindFacesResult ;
1111import com .exadel .frs .core .trainservice .DbHelper ;
1212import com .exadel .frs .core .trainservice .EmbeddedPostgreSQLTest ;
13- import com .exadel .frs .core .trainservice .service .NotificationReceiverService ;
1413import org .apache .commons .lang3 .ArrayUtils ;
1514import org .junit .jupiter .api .Test ;
1615import org .springframework .beans .factory .annotation .Autowired ;
@@ -33,9 +32,6 @@ class MigrationComponentTest extends EmbeddedPostgreSQLTest {
3332 @ MockBean
3433 FacesFeignClient feignClient ;
3534
36- @ MockBean
37- NotificationReceiverService notificationReceiverService ;
38-
3935 @ Autowired
4036 MigrationComponent migrationComponent ;
4137
Original file line number Diff line number Diff line change 55import com .exadel .frs .core .trainservice .DbHelper ;
66import com .exadel .frs .core .trainservice .EmbeddedPostgreSQLTest ;
77import com .exadel .frs .core .trainservice .config .IntegrationTest ;
8- import com .exadel .frs .core .trainservice .service .NotificationReceiverService ;
98import org .junit .jupiter .api .Test ;
109import org .springframework .beans .factory .annotation .Autowired ;
1110import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
@@ -32,9 +31,6 @@ class ConsistenceControllerTest extends EmbeddedPostgreSQLTest {
3231 @ MockBean
3332 FacesApiClient client ;
3433
35- @ MockBean
36- NotificationReceiverService notificationReceiverService ;
37-
3834 @ Test
3935 void shouldReturnStatusWithoutAuth () throws Exception {
4036 var currentCalculator = "currentCalculator" ;
Original file line number Diff line number Diff line change 2525import com .exadel .frs .core .trainservice .EmbeddedPostgreSQLTest ;
2626import com .exadel .frs .core .trainservice .config .IntegrationTest ;
2727import com .exadel .frs .core .trainservice .dto .Base64File ;
28- import com .exadel .frs .core .trainservice .service .NotificationReceiverService ;
2928import com .exadel .frs .core .trainservice .validation .ImageExtensionValidator ;
3029import com .fasterxml .jackson .databind .ObjectMapper ;
3130import lombok .val ;
@@ -67,9 +66,6 @@ class DetectionControllerTest extends EmbeddedPostgreSQLTest {
6766 @ MockBean
6867 private FacesApiClient client ;
6968
70- @ MockBean
71- private NotificationReceiverService notificationReceiverService ;
72-
7369 @ Autowired
7470 private ObjectMapper objectMapper ;
7571
Original file line number Diff line number Diff line change 3333import com .exadel .frs .core .trainservice .dto .Base64File ;
3434import com .exadel .frs .core .trainservice .dto .FaceVerification ;
3535import com .exadel .frs .core .trainservice .service .EmbeddingService ;
36- import com .exadel .frs .core .trainservice .service .NotificationReceiverService ;
3736import com .exadel .frs .core .trainservice .service .SubjectService ;
3837import com .exadel .frs .core .trainservice .validation .ImageExtensionValidator ;
3938import com .fasterxml .jackson .databind .ObjectMapper ;
@@ -100,9 +99,6 @@ class EmbeddingControllerTest extends EmbeddedPostgreSQLTest {
10099 @ MockBean
101100 FacesApiClient client ;
102101
103- @ MockBean
104- NotificationReceiverService notificationReceiverService ;
105-
106102 private static Pair <Subject , Embedding > pair () {
107103 Subject subject = new Subject ();
108104 subject .setId (UUID .randomUUID ());
Original file line number Diff line number Diff line change 2323import com .exadel .frs .core .trainservice .config .IntegrationTest ;
2424import com .exadel .frs .core .trainservice .dto .ModelValidationResult ;
2525import com .exadel .frs .core .trainservice .service .ModelService ;
26- import com .exadel .frs .core .trainservice .service .NotificationReceiverService ;
2726import org .junit .jupiter .api .Test ;
2827import org .springframework .beans .factory .annotation .Autowired ;
2928import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
@@ -53,9 +52,6 @@ class MigrateControllerTest extends EmbeddedPostgreSQLTest {
5352 @ MockBean
5453 private ModelService modelService ;
5554
56- @ MockBean
57- private NotificationReceiverService notificationReceiverService ;
58-
5955 @ Test
6056 void migrate () throws Exception {
6157 var validationResult = new ModelValidationResult (1L , OK );
Original file line number Diff line number Diff line change 44import com .exadel .frs .core .trainservice .DbHelper ;
55import com .exadel .frs .core .trainservice .EmbeddedPostgreSQLTest ;
66import com .exadel .frs .core .trainservice .config .IntegrationTest ;
7- import com .exadel .frs .core .trainservice .service .NotificationReceiverService ;
87import org .junit .jupiter .api .Test ;
98import org .springframework .beans .factory .annotation .Autowired ;
109import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
11- import org .springframework .boot .test .mock .mockito .MockBean ;
1210import org .springframework .test .web .servlet .MockMvc ;
1311
1412import static com .exadel .frs .core .trainservice .system .global .Constants .API_V1 ;
@@ -29,9 +27,6 @@ class StaticControllerTest extends EmbeddedPostgreSQLTest {
2927 @ Autowired
3028 MockMvc mockMvc ;
3129
32- @ MockBean
33- NotificationReceiverService notificationReceiverService ;
34-
3530 @ Test
3631 void getImg () throws Exception {
3732 var model = dbHelper .insertModel ();
Original file line number Diff line number Diff line change 99import com .exadel .frs .core .trainservice .component .FaceClassifierPredictor ;
1010import com .exadel .frs .core .trainservice .config .IntegrationTest ;
1111import com .exadel .frs .core .trainservice .dto .VerifySourceTargetRequest ;
12- import com .exadel .frs .core .trainservice .service .NotificationReceiverService ;
1312import com .exadel .frs .core .trainservice .validation .ImageExtensionValidator ;
1413import com .fasterxml .jackson .databind .ObjectMapper ;
1514import lombok .val ;
@@ -49,9 +48,6 @@ class VerifyControllerTest extends EmbeddedPostgreSQLTest {
4948 @ MockBean
5049 private FacesApiClient client ;
5150
52- @ MockBean
53- private NotificationReceiverService notificationReceiverService ;
54-
5551 @ Autowired
5652 private ObjectMapper objectMapper ;
5753
Original file line number Diff line number Diff line change 1010import com .exadel .frs .core .trainservice .DbHelper ;
1111import com .exadel .frs .core .trainservice .EmbeddedPostgreSQLTest ;
1212import com .exadel .frs .core .trainservice .dto .EmbeddingInfo ;
13- import com .exadel .frs .core .trainservice .service .NotificationReceiverService ;
1413import org .apache .commons .lang3 .tuple .Pair ;
1514import org .junit .jupiter .api .Test ;
1615import org .junit .jupiter .api .TestInstance ;
1716import org .junit .jupiter .params .ParameterizedTest ;
1817import org .junit .jupiter .params .provider .Arguments ;
1918import org .junit .jupiter .params .provider .MethodSource ;
2019import org .springframework .beans .factory .annotation .Autowired ;
21- import org .springframework .boot .test .mock .mockito .MockBean ;
2220import org .springframework .data .domain .Pageable ;
2321
2422import java .util .Optional ;
3129@ TestInstance (TestInstance .Lifecycle .PER_CLASS )
3230class SubjectDaoTest extends EmbeddedPostgreSQLTest {
3331
34- @ MockBean
35- NotificationReceiverService notificationReceiverService ;
36-
3732 @ Autowired
3833 DbHelper dbHelper ;
3934
Original file line number Diff line number Diff line change 55import com .exadel .frs .commonservice .repository .EmbeddingRepository ;
66import com .exadel .frs .core .trainservice .DbHelper ;
77import com .exadel .frs .core .trainservice .EmbeddedPostgreSQLTest ;
8- import com .exadel .frs .core .trainservice .service .NotificationReceiverService ;
98import com .exadel .frs .core .trainservice .system .global .Constants ;
109import org .junit .jupiter .api .Test ;
1110import org .springframework .beans .factory .annotation .Autowired ;
12- import org .springframework .boot .test .mock .mockito .MockBean ;
1311import org .springframework .data .domain .Pageable ;
1412
1513import javax .transaction .Transactional ;
2119
2220class EmbeddingRepositoryTest extends EmbeddedPostgreSQLTest {
2321
24- @ MockBean
25- NotificationReceiverService notificationReceiverService ;
26-
2722 @ Autowired
2823 DbHelper dbHelper ;
2924
Original file line number Diff line number Diff line change 44import com .exadel .frs .commonservice .repository .SubjectRepository ;
55import com .exadel .frs .core .trainservice .DbHelper ;
66import com .exadel .frs .core .trainservice .EmbeddedPostgreSQLTest ;
7- import com .exadel .frs .core .trainservice .service .NotificationReceiverService ;
87import org .junit .jupiter .api .Test ;
98import org .springframework .beans .factory .annotation .Autowired ;
109
1110import javax .transaction .Transactional ;
1211import java .util .List ;
1312import java .util .Optional ;
1413import java .util .UUID ;
15- import org .springframework .boot .test .mock .mockito .MockBean ;
1614
1715import static org .assertj .core .api .Assertions .assertThat ;
1816
1917class SubjectRepositoryTest extends EmbeddedPostgreSQLTest {
2018
21- @ MockBean
22- NotificationReceiverService notificationReceiverService ;
23-
2419 @ Autowired
2520 DbHelper dbHelper ;
2621
You can’t perform that action at this time.
0 commit comments