File tree Expand file tree Collapse file tree
spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/eventstore Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 <wiremock .version>3.13.2</wiremock .version>
5959 <hazelcast .version>5.6.0</hazelcast .version>
6060 <awaitility .version>4.3.0</awaitility .version>
61- <testcontainers .version>1.21.4 </testcontainers .version>
61+ <testcontainers .version>2.0.1 </testcontainers .version>
6262 <jetty .version>12.1.5</jetty .version>
6363
6464 <!-- plugin versions -->
Original file line number Diff line number Diff line change 9393 </dependency >
9494 <dependency >
9595 <groupId >org.testcontainers</groupId >
96- <artifactId >junit-jupiter</artifactId >
96+ <artifactId >testcontainers- junit-jupiter</artifactId >
9797 <version >${testcontainers.version} </version >
9898 <scope >test</scope >
9999 </dependency >
Original file line number Diff line number Diff line change 1616
1717package de .codecentric .boot .admin .server .eventstore ;
1818
19+ import com .hazelcast .config .Config ;
20+ import com .hazelcast .core .Hazelcast ;
1921import com .hazelcast .core .HazelcastInstance ;
20- import com .hazelcast .test .TestHazelcastInstanceFactory ;
2122
2223public class HazelcastEventStoreTest extends AbstractEventStoreTest {
2324
2425 HazelcastInstance hazelcast ;
2526
2627 @ Override
2728 protected InstanceEventStore createStore (int maxLogSizePerAggregate ) {
28- hazelcast = new TestHazelcastInstanceFactory (1 ).newHazelcastInstance ();
29+ Config config = new Config ();
30+ config .getNetworkConfig ().getJoin ().getMulticastConfig ().setEnabled (false );
31+ config .getNetworkConfig ().getJoin ().getAutoDetectionConfig ().setEnabled (false );
32+ hazelcast = Hazelcast .newHazelcastInstance (config );
2933 return new HazelcastEventStore (maxLogSizePerAggregate ,
3034 hazelcast .getMap ("testList" + System .currentTimeMillis ()));
3135 }
3236
3337 @ Override
3438 protected void shutdownStore () {
35- this .hazelcast .shutdown ();
39+ if (this .hazelcast != null ) {
40+ this .hazelcast .shutdown ();
41+ }
3642 }
3743
3844}
You can’t perform that action at this time.
0 commit comments