2019-04-21 12:23:14.509 INFO 9384 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2019-04-21 12:23:14.818 INFO 9384 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2019-04-21 12:23:14.829 INFO 9384 --- [ main] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@7e0b85f9 testClass = ReportHistoryRecordsServiceTest, testInstance = com.demo.service.ReportHistoryRecordsServiceTest@f6de586, testMethod = testSave@ReportHistoryRecordsServiceTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@63355449 testClass = ReportHistoryRecordsServiceTest, locations = '{}', classes = '{class com.demo.DemoApplication, class com.demo.DemoApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@33f88ab, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@1b68ddbd, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@2f943d71, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@1a1d6a08], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true]]; transaction manager [org.springframework.jdbc.datasource.DataSourceTransactionManager@5f2bd6d9]; rollback [true]
2019-04-21 12:23:15.334 DEBUG 9384 --- [ main] c.d.d.ReportHistoryRecordsMapper.insert : ==> Preparing: INSERT INTO report_history_records ( id,created_at,created_by,updated_at,updated_by,sn,name,phone_num,content ) VALUES( ?,?,?,?,?,?,?,?,? )
2019-04-21 12:23:15.380 DEBUG 9384 --- [ main] c.d.d.ReportHistoryRecordsMapper.insert : ==> Parameters: null, 2019-04-21 12:23:15.246(Timestamp), sys(String), 2019-04-21 12:23:15.246(Timestamp), sys(String), fw12a5ca4s441s5r5(String), 张三(String), 12345678(String), 发现冒牌举报,休息休息吧!(String)
2019-04-21 12:23:15.382 DEBUG 9384 --- [ main] c.d.d.ReportHistoryRecordsMapper.insert : <== Updates: 1
2019-04-21 12:23:15.402 DEBUG 9384 --- [ main] c.d.d.R.insert!selectKey : ==> Executing: SELECT LAST_INSERT_ID()
2019-04-21 12:23:15.436 DEBUG 9384 --- [ main] c.d.d.R.insert!selectKey : <== Total: 1
2019-04-21 12:23:15.445 INFO 9384 --- [ main] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@7e0b85f9 testClass = ReportHistoryRecordsServiceTest, testInstance = com.demo.service.ReportHistoryRecordsServiceTest@f6de586, testMethod = testSave@ReportHistoryRecordsServiceTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@63355449 testClass = ReportHistoryRecordsServiceTest, locations = '{}', classes = '{class com.demo.DemoApplication, class com.demo.DemoApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@33f88ab, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@1b68ddbd, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@2f943d71, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@1a1d6a08], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true]]
2019-04-21 12:23:15.455 INFO 9384 --- [ Thread-2] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
2019-04-21 12:23:15.458 INFO 9384 --- [ Thread-2] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2019-04-21 12:23:15.471 INFO 9384 --- [ Thread-2] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
相关文章
- 10-20springboot回滚部分异常
- 10-20一维数组转二叉树、注解回滚、eclipse配置代码自动补全
- 10-20使用spring声明式事务,spring使用AOP来支持声明式事务,会根据事务属性,自动在方法调用之前决定是否开启一个事务,并在方法执行之后决定事务提交或回滚事务。
- 10-20k8s学习笔记(3)- kubectl高可用部署,扩容,升级,回滚springboot应用
- 10-20单元测试数据库回滚问题
- 10-20k8s配置私有仓库和自动升级和回滚
- 10-20一个电商项目的Web服务化改造6:单元测试4步走,构造数据、执行操作、断言、回滚
- 10-20Spring-mvc junit单元测试中 如何回滚?
- 10-20java-EJB事务回滚后自动重试
- 10-20自动补全、回滚!介绍一款可视化 sql 诊断利器