Merge branch '2.1.x' into 2.2.x
Closes gh-20717
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 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.
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package org.springframework.boot.actuate.cassandra;
|
||||
|
||||
import com.datastax.driver.core.querybuilder.Select;
|
||||
import com.datastax.driver.core.Statement;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import reactor.core.publisher.Mono;
|
||||
import reactor.test.StepVerifier;
|
||||
@@ -42,7 +42,8 @@ class CassandraReactiveHealthIndicatorTests {
|
||||
@Test
|
||||
void testCassandraIsUp() {
|
||||
ReactiveCqlOperations reactiveCqlOperations = mock(ReactiveCqlOperations.class);
|
||||
given(reactiveCqlOperations.queryForObject(any(Select.class), eq(String.class))).willReturn(Mono.just("6.0.0"));
|
||||
given(reactiveCqlOperations.queryForObject(any(Statement.class), eq(String.class)))
|
||||
.willReturn(Mono.just("6.0.0"));
|
||||
ReactiveCassandraOperations reactiveCassandraOperations = mock(ReactiveCassandraOperations.class);
|
||||
given(reactiveCassandraOperations.getReactiveCqlOperations()).willReturn(reactiveCqlOperations);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user