How do you create a Hazelcast instance embedded in-process/in-memory, without networking?

后端 未结 6 901
深忆病人
深忆病人 2021-02-14 02:09

In my unit tests, I want to create an embedded (in-process/in-memory) Hazelcast instance that does not attempt to start or perform any networking operations at all.

How

6条回答
  •  一个人的身影
    2021-02-14 02:15

    You can use HazelcastTestInstance, as described here: https://jukusoft.com/2017/01/11/java-hazelcast-junit-tests/

    (Link is German, but code is Java)

提交回复
热议问题