use of de.codecentric.boot.admin.server.services.InstanceRegistry in project spring-boot-admin by codecentric.
the class InstanceDiscoveryListenerTest method setup.
@BeforeEach
public void setup() {
this.discovery = mock(DiscoveryClient.class);
InstanceRepository repository = new EventsourcingInstanceRepository(new InMemoryEventStore());
this.registry = spy(new InstanceRegistry(repository, new HashingInstanceUrlIdGenerator()));
this.listener = new InstanceDiscoveryListener(this.discovery, this.registry, repository);
}
Aggregations