Wednesday, 17 August 2022

Accessing ElasticSearch in TestContainer


During the Unit test or Integration test, it may need to verify if a document having been persisted successfully.  


Using UI tool



Using command

docker ps to list all containers, and find out elastic container port(exposure port) number

ac8dec5773de   docker.elastic.co/elasticsearch/elasticsearch:8.1.3   "/bin/tini -- /usr/l…"   4 days ago       Up 4 days       0.0.0.0:64595->9200/tcp, 0.0.0.0:64596->9300/tcp   vigilant_pike




List all index                                

No comments:

Can Jackson Deserialize Java Time ZonedDateTime

Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...