From a39bbab6bbeaecaed2d1136931735fcf5650f0c2 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Wed, 7 Aug 2024 20:05:57 +0200 Subject: [PATCH] Fix DiscoveryDisabledTests. --- .../discovery/ZookeeperDiscoveryDisabledTests.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-cloud-zookeeper-discovery/src/test/java/org/springframework/cloud/zookeeper/discovery/ZookeeperDiscoveryDisabledTests.java b/spring-cloud-zookeeper-discovery/src/test/java/org/springframework/cloud/zookeeper/discovery/ZookeeperDiscoveryDisabledTests.java index 07c0487f..5550ce8d 100644 --- a/spring-cloud-zookeeper-discovery/src/test/java/org/springframework/cloud/zookeeper/discovery/ZookeeperDiscoveryDisabledTests.java +++ b/spring-cloud-zookeeper-discovery/src/test/java/org/springframework/cloud/zookeeper/discovery/ZookeeperDiscoveryDisabledTests.java @@ -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); } }