Skip to content

Commit a39bbab

Browse files
committed
Fix DiscoveryDisabledTests.
1 parent 7922c1b commit a39bbab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spring-cloud-zookeeper-discovery/src/test/java/org/springframework/cloud/zookeeper/discovery/ZookeeperDiscoveryDisabledTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015-2019 the original author or authors.
2+
* Copyright 2015-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,6 +31,8 @@
3131
import org.springframework.test.context.ContextConfiguration;
3232
import org.springframework.test.context.junit4.SpringRunner;
3333

34+
import static org.mockito.Mockito.mock;
35+
3436
/**
3537
* @author Marcin Grzejszczak
3638
*/
@@ -52,7 +54,7 @@ static class SomeApp {
5254

5355
@Bean
5456
CuratorFramework curator() {
55-
return null;
57+
return mock(CuratorFramework.class);
5658
}
5759

5860
}

0 commit comments

Comments
 (0)