-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtest_results.log
More file actions
465 lines (456 loc) · 31.8 KB
/
test_results.log
File metadata and controls
465 lines (456 loc) · 31.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.deliverytech:delivery-api >--------------------
[INFO] Building delivery-api 0.0.1-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- jacoco:0.8.13:prepare-agent (default) @ delivery-api ---
[INFO] argLine set to -javaagent:C:\\Users\\Ander\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.13\\org.jacoco.agent-0.8.13-runtime.jar=destfile=C:\\Users\\Ander\\OneDrive\\Documentos\\Java\\FAT\\delivery-tech\\target\\jacoco.exec
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ delivery-api ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO] Copying 0 resource from src\main\resources to target\classes
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ delivery-api ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ delivery-api ---
[INFO] Copying 2 resources from src\test\resources to target\test-classes
[INFO]
[INFO] --- compiler:3.14.0:testCompile (default-testCompile) @ delivery-api ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] --- surefire:3.5.3:test (default-test) @ delivery-api ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.deliverytech.delivery_api.controller.ClienteControllerTest
14:50:24.802 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.deliverytech.delivery_api.controller.ClienteControllerTest]: ClienteControllerTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
14:50:25.057 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.deliverytech.delivery_api.DeliveryApiApplication for test class com.deliverytech.delivery_api.controller.ClienteControllerTest
14:50:25.305 [main] INFO org.springframework.boot.devtools.restart.RestartApplicationListener -- Restart disabled due to context in which it is running
2025-08-02T14:50:25.717-03:00 INFO 4984 --- [ main] c.d.d.controller.ClienteControllerTest : Starting ClienteControllerTest using Java 21.0.7 with PID 4984 (started by Ander in C:\Users\Ander\OneDrive\Documentos\Java\FAT\delivery-tech)
2025-08-02T14:50:25.720-03:00 INFO 4984 --- [ main] c.d.d.controller.ClienteControllerTest : The following 1 profile is active: "test"
2025-08-02T14:50:25.741-03:00 DEBUG 4984 --- [ main] o.s.w.c.s.GenericWebApplicationContext : Refreshing org.springframework.web.context.support.GenericWebApplicationContext@13ef7fa1
Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build as described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3
Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
WARNING: A Java agent has been loaded dynamically (C:\Users\Ander\.m2\repository\net\bytebuddy\byte-buddy-agent\1.17.6\byte-buddy-agent-1.17.6.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
2025-08-02T14:50:30.341-03:00 WARN 4984 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
2025-08-02T14:50:34.127-03:00 DEBUG 4984 --- [ main] i.m.c.u.i.logging.InternalLoggerFactory : Using SLF4J as the default logging framework
2025-08-02T14:50:34.354-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : 52 mappings in 'requestMappingHandlerMapping'
2025-08-02T14:50:34.525-03:00 DEBUG 4984 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Patterns [/webjars/**, /**] in 'resourceHandlerMapping'
2025-08-02T14:50:34.682-03:00 INFO 4984 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint beneath base path '/actuator'
2025-08-02T14:50:34.981-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : ControllerAdvice beans: 0 @ModelAttribute, 0 @InitBinder, 1 RequestBodyAdvice, 1 ResponseBodyAdvice
2025-08-02T14:50:35.029-03:00 DEBUG 4984 --- [ main] .m.m.a.ExceptionHandlerExceptionResolver : ControllerAdvice beans: 1 @ExceptionHandler, 1 ResponseBodyAdvice
2025-08-02T14:50:35.151-03:00 DEBUG 4984 --- [ main] o.s.b.w.s.ServletContextInitializerBeans : Mapping filters: webMvcObservationFilter urls=[/*] order=-2147483647, responseCaptureFilter urls=[/api/*] order=1, springSecurityFilterChain urls=[/*] order=-100, characterEncodingFilter urls=[/*] order=-2147483648, formContentFilter urls=[/*] order=-9900, requestContextFilter urls=[/*] order=-105, jwtAuthenticationFilter urls=[/*] order=2147483647
2025-08-02T14:50:35.151-03:00 DEBUG 4984 --- [ main] o.s.b.w.s.ServletContextInitializerBeans : Mapping servlets:
2025-08-02T14:50:35.175-03:00 DEBUG 4984 --- [ main] o.s.w.f.ServerHttpObservationFilter : Filter 'webMvcObservationFilter' configured for use
2025-08-02T14:50:35.236-03:00 INFO 4984 --- [ main] c.d.d.controller.ClienteControllerTest : Started ClienteControllerTest in 9.946 seconds (process running for 11.604)
=== INICIANDO CARGA DE DADOS DE TESTE ===
--- Inserindo clientes ---
? 5 clientes inseridos
--- Inserindo Restaurantes ---
? 5 restaurantes inseridos
--- Inserindo Produtos ---
? 10 produtos inseridos
=== CARGA DE DADOS CONCLUÍDA ===
? Spring Boot Application iniciada com sucesso!
? SISTEMA DE CAPTURA AUTOMÁTICA ATIVO!
? Respostas serão salvas em: ./entregaveis/
? Faça requisições para /api/* e veja os arquivos sendo gerados!
2025-08-02T14:50:35.627-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.deliverytech.delivery_api.controller.ClienteController#buscarPorId(Long)
2025-08-02T14:50:35.649-03:00 INFO 4984 --- [ main] c.d.d.controller.ClienteController : Recebida requisição para buscar cliente ID: 1
2025-08-02T14:50:35.700-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [application/json] and supported [application/json, application/*+json, application/yaml]
2025-08-02T14:50:35.702-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [com.deliverytech.delivery_api.dto.response.ApiResponseWrapper@69f40551]
? Resposta completa salva: entregaveis/GET_clientes_1_20250802_145035.txt
2025-08-02T14:50:35.799-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.deliverytech.delivery_api.controller.ClienteController#ativarDesativarCliente(Long)
2025-08-02T14:50:35.799-03:00 INFO 4984 --- [ main] c.d.d.controller.ClienteController : Recebida requisição para alterar status do cliente ID: 1
2025-08-02T14:50:35.803-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml]
2025-08-02T14:50:35.803-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [{cliente=Cliente(id=1, nome=João Silva Santos, telefone=null, endereco=null, email=joao@email.com, a (truncated)...]
? Resposta completa salva: entregaveis/PATCH_clientes_1_status_20250802_145035.txt
2025-08-02T14:50:35.815-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.deliverytech.delivery_api.controller.ClienteController#buscarPorEmail(String)
2025-08-02T14:50:35.819-03:00 INFO 4984 --- [ main] c.d.d.controller.ClienteController : Recebida requisição para buscar cliente por email: inexistente@email.com
2025-08-02T14:50:35.821-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/octet-stream', given [*/*] and supported [*/*]
? Resposta completa salva: entregaveis/GET_clientes_email_inexistente@email.com_20250802_145035.txt
2025-08-02T14:50:35.833-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.deliverytech.delivery_api.controller.ClienteController#buscarPorEmail(String)
2025-08-02T14:50:35.833-03:00 INFO 4984 --- [ main] c.d.d.controller.ClienteController : Recebida requisição para buscar cliente por email: joao@email.com
2025-08-02T14:50:35.836-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [application/json] and supported [application/json, application/*+json, application/yaml]
2025-08-02T14:50:35.836-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [Cliente(id=1, nome=João Silva Santos, telefone=11999999999, endereco=Av João da Silva, email=joao@em (truncated)...]
? Resposta completa salva: entregaveis/GET_clientes_email_joao@email.com_20250802_145035.txt
2025-08-02T14:50:35.861-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.deliverytech.delivery_api.controller.ClienteController#cadastrar(ClienteRequest)
2025-08-02T14:50:35.892-03:00 DEBUG 4984 --- [ main] m.m.a.RequestResponseBodyMethodProcessor : Read "application/json;charset=UTF-8" to [ClienteRequest(nome=null, telefone=null, email=null, endereco=null)]
2025-08-02T14:50:35.941-03:00 DEBUG 4984 --- [ main] .m.m.a.ExceptionHandlerExceptionResolver : Using @ExceptionHandler com.deliverytech.delivery_api.exception.GlobalExceptionHandler#handleValidationExceptions(MethodArgumentNotValidException)
2025-08-02T14:50:35.942-03:00 WARN 4984 --- [ main] c.d.d.exception.GlobalExceptionHandler : Erro de validação: {telefone=Telefone é obrigatório, endereco=Endereço é obrigatório, nome=Nome é obrigatório, email=Email é obrigatório}
2025-08-02T14:50:35.942-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml]
2025-08-02T14:50:35.944-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [{validationErrors={telefone=Telefone é obrigatório, endereco=Endereço é obrigatório, nome=Nome é obr (truncated)...]
2025-08-02T14:50:35.945-03:00 DEBUG 4984 --- [ main] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public org.springframework.http.ResponseEntity<?> com.deliverytech.delivery_api.controller.ClienteController.cadastrar(com.deliverytech.delivery_api.dto.request.ClienteRequest) with 4 errors: [Field error in object 'clienteRequest' on field 'nome': rejected value [null]; codes [NotBlank.clienteRequest.nome,NotBlank.nome,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [clienteRequest.nome,nome]; arguments []; default message [nome]]; default message [Nome é obrigatório]] [Field error in object 'clienteRequest' on field 'telefone': rejected value [null]; codes [NotBlank.clienteRequest.telefone,NotBlank.telefone,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [clienteRequest.telefone,telefone]; arguments []; default message [telefone]]; default message [Telefone é obrigatório]] [Field error in object 'clienteRequest' on field 'endereco': rejected value [null]; codes [NotBlank.clienteRequest.endereco,NotBlank.endereco,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [clienteRequest.endereco,endereco]; arguments []; default message [endereco]]; default message [Endereço é obrigatório]] [Field error in object 'clienteRequest' on field 'email': rejected value [null]; codes [NotBlank.clienteRequest.email,NotBlank.email,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [clienteRequest.email,email]; arguments []; default message [email]]; default message [Email é obrigatório]] ]
? Resposta completa salva: entregaveis/POST_clientes_20250802_145035.txt
2025-08-02T14:50:35.956-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.deliverytech.delivery_api.controller.ClienteController#buscarPorId(Long)
2025-08-02T14:50:35.956-03:00 INFO 4984 --- [ main] c.d.d.controller.ClienteController : Recebida requisição para buscar cliente ID: 999
2025-08-02T14:50:35.956-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml]
2025-08-02T14:50:35.957-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [com.deliverytech.delivery_api.dto.response.ApiResponseWrapper@d73458a]
? Resposta completa salva: entregaveis/GET_clientes_999_20250802_145035.txt
2025-08-02T14:50:35.966-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.deliverytech.delivery_api.controller.ClienteController#buscarPorNome(String)
2025-08-02T14:50:35.967-03:00 INFO 4984 --- [ main] c.d.d.controller.ClienteController : Recebida requisição para buscar clientes por nome: Silva
2025-08-02T14:50:35.972-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [application/json] and supported [application/json, application/*+json, application/yaml]
2025-08-02T14:50:35.972-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [[Cliente(id=1, nome=João Silva Santos, telefone=11999999999, endereco=Av João da Silva, email=joao@e (truncated)...]
? Resposta completa salva: entregaveis/GET_clientes_buscar_20250802_145035.txt
2025-08-02T14:50:35.986-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.deliverytech.delivery_api.controller.ClienteController#listar()
2025-08-02T14:50:35.986-03:00 INFO 4984 --- [ main] c.d.d.controller.ClienteController : Recebida requisição para listar clientes ativos
2025-08-02T14:50:35.986-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [application/json] and supported [application/json, application/*+json, application/yaml]
2025-08-02T14:50:35.986-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [[Cliente(id=1, nome=João Silva Santos, telefone=11999999999, endereco=Av João da Silva, email=joao@e (truncated)...]
? Resposta completa salva: entregaveis/GET_clientes_20250802_145035.txt
2025-08-02T14:50:36.001-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.deliverytech.delivery_api.controller.ClienteController#atualizar(Long, ClienteRequest)
2025-08-02T14:50:36.002-03:00 DEBUG 4984 --- [ main] m.m.a.RequestResponseBodyMethodProcessor : Read "application/json;charset=UTF-8" to [ClienteRequest(nome=João Silva Santos, telefone=11999999999, email=joao@email.com, endereco=Av João (truncated)...]
2025-08-02T14:50:36.014-03:00 INFO 4984 --- [ main] c.d.d.controller.ClienteController : Recebida requisição para atualizar cliente ID: 1
2025-08-02T14:50:36.015-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml]
2025-08-02T14:50:36.015-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [Cliente(id=1, nome=João Silva Atualizado, telefone=null, endereco=null, email=joao@email.com, ativo= (truncated)...]
? Resposta completa salva: entregaveis/PUT_clientes_1_20250802_145036.txt
2025-08-02T14:50:36.023-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.deliverytech.delivery_api.controller.ClienteController#cadastrar(ClienteRequest)
2025-08-02T14:50:36.025-03:00 DEBUG 4984 --- [ main] m.m.a.RequestResponseBodyMethodProcessor : Read "application/json;charset=UTF-8" to [ClienteRequest(nome=João Silva Santos, telefone=11999999999, email=joao@email.com, endereco=Av João (truncated)...]
2025-08-02T14:50:36.025-03:00 INFO 4984 --- [ main] c.d.d.controller.ClienteController : Recebida requisição para cadastrar cliente: joao@email.com
2025-08-02T14:50:36.026-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml]
2025-08-02T14:50:36.026-03:00 DEBUG 4984 --- [ main] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [Cliente(id=1, nome=João Silva Santos, telefone=11999999999, endereco=Av João da Silva, email=joao@em (truncated)...]
? Resposta completa salva: entregaveis/POST_clientes_20250802_145036.txt
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.49 s -- in com.deliverytech.delivery_api.controller.ClienteControllerTest
[INFO] Running com.deliverytech.delivery_api.DeliveryApiApplicationTests
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.5.3)
2025-08-02T14:50:36.078-03:00 INFO 4984 --- [ main] c.d.d.DeliveryApiApplicationTests : Starting DeliveryApiApplicationTests using Java 21.0.7 with PID 4984 (started by Ander in C:\Users\Ander\OneDrive\Documentos\Java\FAT\delivery-tech)
2025-08-02T14:50:36.078-03:00 INFO 4984 --- [ main] c.d.d.DeliveryApiApplicationTests : No active profile set, falling back to 1 default profile: "default"
2025-08-02T14:50:36.081-03:00 DEBUG 4984 --- [ main] o.s.w.c.s.GenericWebApplicationContext : Refreshing org.springframework.web.context.support.GenericWebApplicationContext@3f3883e5
2025-08-02T14:50:36.440-03:00 INFO 4984 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2025-08-02T14:50:36.458-03:00 INFO 4984 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 18 ms. Found 5 JPA repository interfaces.
2025-08-02T14:50:36.542-03:00 INFO 4984 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2025-08-02T14:50:36.545-03:00 INFO 4984 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled
2025-08-02T14:50:36.552-03:00 INFO 4984 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer
2025-08-02T14:50:36.553-03:00 INFO 4984 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Starting...
2025-08-02T14:50:36.555-03:00 INFO 4984 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-2 - Added connection conn2: url=jdbc:h2:mem:delivery user=SA
2025-08-02T14:50:36.556-03:00 INFO 4984 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Start completed.
2025-08-02T14:50:36.556-03:00 WARN 4984 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
2025-08-02T14:50:36.559-03:00 INFO 4984 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info:
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-2)']
Database driver: undefined/unknown
Database version: 2.3.232
Autocommit mode: undefined/unknown
Isolation level: undefined/unknown
Minimum pool size: undefined/unknown
Maximum pool size: undefined/unknown
2025-08-02T14:50:36.620-03:00 INFO 4984 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
Hibernate:
create table cliente (
id bigint generated by default as identity,
ativo boolean,
data_criacao timestamp(6),
email varchar(255),
endereco varchar(255),
nome varchar(255),
telefone varchar(255),
primary key (id)
)
Hibernate:
create table item_pedido (
id bigint generated by default as identity,
preco_unitario numeric(10,2) not null,
quantidade integer not null,
subtotal numeric(10,2) not null,
pedido_id bigint not null,
produto_id bigint not null,
primary key (id)
)
Hibernate:
create table pedido (
id bigint generated by default as identity,
data_pedido timestamp(6),
bairro varchar(255),
cep varchar(255),
cidade varchar(255),
complemento varchar(255),
estado varchar(255),
numero varchar(255),
logradouro varchar(255),
numero_pedido varchar(255),
observacoes varchar(255),
status enum ('CANCELADO','CONFIRMADO','CRIADO','ENTREGUE','PENDENTE','PREPARANDO','SAIU_PARA_ENTREGA'),
subtotal numeric(38,2),
valor_total numeric(38,2),
cliente_id bigint,
restaurante_id bigint,
primary key (id)
)
Hibernate:
create table produto (
id bigint generated by default as identity,
categoria varchar(255),
descricao varchar(255),
disponivel boolean,
nome varchar(255),
preco numeric(38,2),
restaurante_id bigint,
primary key (id)
)
Hibernate:
create table restaurante (
id bigint generated by default as identity,
ativo boolean,
avaliacao numeric(38,2),
categoria varchar(255),
nome varchar(255),
taxa_entrega numeric(38,2),
telefone varchar(255),
tempo_entrega_minutos integer,
primary key (id)
)
Hibernate:
create table usuario (
id bigint generated by default as identity,
ativo boolean,
data_criacao timestamp(6),
email varchar(255) not null,
nome varchar(255),
restaurante_id bigint,
role enum ('ADMIN','CLIENTE','ENTREGADOR','RESTAURANTE','USER') not null,
senha varchar(255) not null,
primary key (id)
)
Hibernate:
alter table if exists cliente
drop constraint if exists UKcmxo70m08n43599l3h0h07cc6
Hibernate:
alter table if exists cliente
add constraint UKcmxo70m08n43599l3h0h07cc6 unique (email)
Hibernate:
alter table if exists usuario
drop constraint if exists UK5171l57faosmj8myawaucatdw
Hibernate:
alter table if exists usuario
add constraint UK5171l57faosmj8myawaucatdw unique (email)
Hibernate:
alter table if exists item_pedido
add constraint FK60ym08cfoysa17wrn1swyiuda
foreign key (pedido_id)
references pedido
Hibernate:
alter table if exists item_pedido
add constraint FKtk55mn6d6bvl5h0no5uagi3sf
foreign key (produto_id)
references produto
Hibernate:
alter table if exists pedido
add constraint FK30s8j2ktpay6of18lbyqn3632
foreign key (cliente_id)
references cliente
Hibernate:
alter table if exists pedido
add constraint FK3eud5cqmgsnltyk704hu3qj71
foreign key (restaurante_id)
references restaurante
Hibernate:
alter table if exists produto
add constraint FKb9jhjyghjcn25guim7q4pt8qx
foreign key (restaurante_id)
references restaurante
2025-08-02T14:50:36.663-03:00 INFO 4984 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2025-08-02T14:50:36.742-03:00 INFO 4984 --- [ main] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name authServiceImpl
2025-08-02T14:50:36.931-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : 56 mappings in 'requestMappingHandlerMapping'
2025-08-02T14:50:36.956-03:00 DEBUG 4984 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Patterns [/webjars/**, /**, /swagger-ui*/*swagger-initializer.js, /swagger-ui*/**] in 'resourceHandlerMapping'
2025-08-02T14:50:36.986-03:00 INFO 4984 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 4 endpoints beneath base path '/actuator'
2025-08-02T14:50:37.004-03:00 DEBUG 4984 --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure any request with filters: DisableEncodeUrlFilter, WebAsyncManagerIntegrationFilter, SecurityContextHolderFilter, HeaderWriterFilter, LogoutFilter, JwtAuthenticationFilter, RequestCacheAwareFilter, SecurityContextHolderAwareRequestFilter, AnonymousAuthenticationFilter, SessionManagementFilter, ExceptionTranslationFilter, AuthorizationFilter
2025-08-02T14:50:37.023-03:00 DEBUG 4984 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : ControllerAdvice beans: 0 @ModelAttribute, 0 @InitBinder, 1 RequestBodyAdvice, 1 ResponseBodyAdvice
2025-08-02T14:50:37.026-03:00 DEBUG 4984 --- [ main] .m.m.a.ExceptionHandlerExceptionResolver : ControllerAdvice beans: 2 @ExceptionHandler, 1 ResponseBodyAdvice
2025-08-02T14:50:37.121-03:00 INFO 4984 --- [ main] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:delivery'
2025-08-02T14:50:37.144-03:00 INFO 4984 --- [ main] c.d.d.DeliveryApiApplicationTests : Started DeliveryApiApplicationTests in 1.103 seconds (process running for 13.512)
=== INICIANDO CARGA DE DADOS DE TESTE ===
--- Inserindo clientes ---
Hibernate:
insert
into
cliente
(ativo, data_criacao, email, endereco, nome, telefone, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
cliente
(ativo, data_criacao, email, endereco, nome, telefone, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
cliente
(ativo, data_criacao, email, endereco, nome, telefone, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
cliente
(ativo, data_criacao, email, endereco, nome, telefone, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
cliente
(ativo, data_criacao, email, endereco, nome, telefone, id)
values
(?, ?, ?, ?, ?, ?, default)
? 5 clientes inseridos
--- Inserindo Restaurantes ---
Hibernate:
insert
into
restaurante
(ativo, avaliacao, categoria, nome, taxa_entrega, telefone, tempo_entrega_minutos, id)
values
(?, ?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
restaurante
(ativo, avaliacao, categoria, nome, taxa_entrega, telefone, tempo_entrega_minutos, id)
values
(?, ?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
restaurante
(ativo, avaliacao, categoria, nome, taxa_entrega, telefone, tempo_entrega_minutos, id)
values
(?, ?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
restaurante
(ativo, avaliacao, categoria, nome, taxa_entrega, telefone, tempo_entrega_minutos, id)
values
(?, ?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
restaurante
(ativo, avaliacao, categoria, nome, taxa_entrega, telefone, tempo_entrega_minutos, id)
values
(?, ?, ?, ?, ?, ?, ?, default)
? 5 restaurantes inseridos
--- Inserindo Produtos ---
Hibernate:
select
r1_0.id,
r1_0.ativo,
r1_0.avaliacao,
r1_0.categoria,
r1_0.nome,
r1_0.taxa_entrega,
r1_0.telefone,
r1_0.tempo_entrega_minutos
from
restaurante r1_0
Hibernate:
insert
into
produto
(categoria, descricao, disponivel, nome, preco, restaurante_id, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
produto
(categoria, descricao, disponivel, nome, preco, restaurante_id, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
produto
(categoria, descricao, disponivel, nome, preco, restaurante_id, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
produto
(categoria, descricao, disponivel, nome, preco, restaurante_id, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
produto
(categoria, descricao, disponivel, nome, preco, restaurante_id, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
produto
(categoria, descricao, disponivel, nome, preco, restaurante_id, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
produto
(categoria, descricao, disponivel, nome, preco, restaurante_id, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
produto
(categoria, descricao, disponivel, nome, preco, restaurante_id, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
produto
(categoria, descricao, disponivel, nome, preco, restaurante_id, id)
values
(?, ?, ?, ?, ?, ?, default)
Hibernate:
insert
into
produto
(categoria, descricao, disponivel, nome, preco, restaurante_id, id)
values
(?, ?, ?, ?, ?, ?, default)
? 10 produtos inseridos
=== CARGA DE DADOS CONCLUÍDA ===
? Spring Boot Application iniciada com sucesso!
? SISTEMA DE CAPTURA AUTOMÁTICA ATIVO!
? Respostas serão salvas em: ./entregaveis/
? Faça requisições para /api/* e veja os arquivos sendo gerados!
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.143 s -- in com.deliverytech.delivery_api.DeliveryApiApplicationTests
[INFO] Running com.deliverytech.delivery_api.services.ClienteServiceTest
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.169 s -- in com.deliverytech.delivery_api.services.ClienteServiceTest
[INFO] Running com.deliverytech.delivery_api.services.PedidoServiceTest
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.070 s -- in com.deliverytech.delivery_api.services.PedidoServiceTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 36, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- jacoco:0.8.13:report (report) @ delivery-api ---
[INFO] Loading execution data file C:\Users\Ander\OneDrive\Documentos\Java\FAT\delivery-tech\target\jacoco.exec
[INFO] Analyzed bundle 'delivery-api' with 48 classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.304 s
[INFO] Finished at: 2025-08-02T14:50:38-03:00
[INFO] ------------------------------------------------------------------------