17:15:56.306 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class service.EsServiceTest]
17:15:56.323 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
17:15:56.344 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
17:15:56.424 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [service.EsServiceTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
17:15:56.447 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [service.EsServiceTest], using SpringBootContextLoader
17:15:56.454 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [service.EsServiceTest]: class path resource [service/EsServiceTest-context.xml] does not exist
17:15:56.454 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [service.EsServiceTest]: class path resource [service/EsServiceTestContext.groovy] does not exist
17:15:56.454 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [service.EsServiceTest]: no resource found for suffixes {-context.xml, Context.groovy}.
17:15:56.567 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [service.EsServiceTest]
17:15:56.794 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [service.EsServiceTest]: using defaults.
17:15:56.794 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
17:15:56.814 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource]
17:15:56.817 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
17:15:56.817 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@6dc17b83, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@5e0826e7, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@32eff876, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@8dbdac1, org.springframework.test.context.support.DirtiesContextTestExecutionListener@6e20b53a, org.springframework.test.context.event.EventPublishingTestExecutionListener@71809907, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@3ce1e309, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@6aba2b86, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@158da8e, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@74e52303, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@47af7f3d, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@7c729a55]
17:15:56.819 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [service.EsServiceTest]
17:15:56.822 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [service.EsServiceTest]
17:15:56.825 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [service.EsServiceTest]
17:15:56.825 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [service.EsServiceTest]
17:15:56.840 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [service.EsServiceTest]
17:15:56.840 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [service.EsServiceTest]
17:15:56.843 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [service.EsServiceTest]
17:15:56.843 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [service.EsServiceTest]
17:15:56.843 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [service.EsServiceTest]
17:15:56.843 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [service.EsServiceTest]
17:15:56.854 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@72d1ad2e testClass = EsServiceTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@2d7275fc testClass = EsServiceTest, locations = '{}', classes = '{class com.itclj.es.rest.EsRestApplication, class com.itclj.es.rest.EsRestApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@5bb21b69, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@687080dc, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@a38d7a3, org.springframework.boot.test.web.reactive.server.WebTestClientContextCustomizer@3aeaafa6, org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@eafc191, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@5891e32e, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@148080bb], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null].
17:15:56.857 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [service.EsServiceTest]
17:15:56.858 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [service.EsServiceTest]
17:15:56.913 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.4.0)
2021-04-07 17:15:57.635 INFO 8884 --- [ main] service.EsServiceTest : Starting EsServiceTest using Java 1.8.0_45 on 1 with PID 8884 (started by zwf in E:\spring-boot2-elasticsearch-demo-main\rest-client)
2021-04-07 17:15:57.640 INFO 8884 --- [ main] service.EsServiceTest : No active profile set, falling back to default profiles: default
2021-04-07 17:16:09.804 INFO 8884 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2021-04-07 17:16:11.203 INFO 8884 --- [ main] service.EsServiceTest : Started EsServiceTest in 14.151 seconds (JVM running for 16.164)
2021-04-07 17:16:24.634 WARN 8884 --- [ main] org.elasticsearch.client.RestClient : request [POST http://192.168.8.150:9200/book/_doc/005128/_update] returned 1 warnings: [299 Elasticsearch-7.8.0-757314695644ea9a1dc2fecd26d1a43856725e65 "[types removal] Specifying types in document update requests is deprecated, use the endpoint /{index}/_update/{id} instead."]
2021-04-07 17:16:24.639 INFO 8884 --- [ main] c.i.es.rest.service.impl.EsServiceImpl : {"_index":"book","_type":"_doc","_id":"005128","_version":2,"result":"updated","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":5,"_primary_term":1}
2021-04-07 17:16:24.639 INFO 8884 --- [ main] service.EsServiceTest : res=true
2021-04-07 17:16:25.455 WARN 8884 --- [ main] org.elasticsearch.client.RestClient : request [POST http://192.168.8.150:9200/book/_doc/005129/_update] returned 1 warnings: [299 Elasticsearch-7.8.0-757314695644ea9a1dc2fecd26d1a43856725e65 "[types removal] Specifying types in document update requests is deprecated, use the endpoint /{index}/_update/{id} instead."]
2021-04-07 17:16:25.457 INFO 8884 --- [ main] c.i.es.rest.service.impl.EsServiceImpl : {"_index":"book","_type":"_doc","_id":"005129","_version":3,"result":"updated","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":6,"_primary_term":1}
2021-04-07 17:16:25.457 INFO 8884 --- [ main] service.EsServiceTest : res=true
2021-04-07 17:16:26.012 INFO 8884 --- [ main] c.i.es.rest.service.impl.EsServiceImpl : {"_index":"book","_type":"_doc","_id":"005129","_version":3,"_seq_no":6,"_primary_term":1,"found":true,"_source":{"author":"zwf","desc":"zengwenfeng is shuaige","id":"005129","name":"zengwenfeng"}}
2021-04-07 17:16:26.476 INFO 8884 --- [ main] service.EsServiceTest : getById() : {"author":"zwf","desc":"zengwenfeng is shuaige","id":"005129","name":"zengwenfeng"}
2021-04-07 17:16:27.473 INFO 8884 --- [ main] c.i.es.rest.service.impl.EsServiceImpl : {"_index":"book","_type":"_doc","_id":"DJWIqyJn3elEnBj4jUk3kTElMmuc116t","_version":2,"result":"deleted","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":7,"_primary_term":1}
2021-04-07 17:16:27.473 INFO 8884 --- [ main] service.EsServiceTest : res=true
2021-04-07 17:16:28.007 INFO 8884 --- [extShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
s