Fix DiscoveryDisabledTests.

This commit is contained in:
Olga Maciaszek-Sharma
2024-08-07 20:05:57 +02:00
parent 7922c1b1d3
commit a39bbab6bb

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015-2019 the original author or authors.
* Copyright 2015-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -31,6 +31,8 @@ import org.springframework.context.annotation.Import;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;
import static org.mockito.Mockito.mock;
/**
* @author Marcin Grzejszczak
*/
@@ -52,7 +54,7 @@ public class ZookeeperDiscoveryDisabledTests {
@Bean
CuratorFramework curator() {
return null;
return mock(CuratorFramework.class);
}
}