DATAREDIS-779 - Polishing.
Reformat code. Add ticket references to tests. Original pull request: #317.
This commit is contained in:
@@ -94,8 +94,7 @@ class LettuceReactiveStringCommands implements ReactiveStringCommands {
|
||||
|
||||
Mono<String> mono = args != null ? cmd.set(command.getKey(), command.getValue(), args)
|
||||
: cmd.set(command.getKey(), command.getValue());
|
||||
return mono.map(LettuceConverters::stringToBoolean)
|
||||
.map(value -> new BooleanResponse<>(command, value))
|
||||
return mono.map(LettuceConverters::stringToBoolean).map(value -> new BooleanResponse<>(command, value))
|
||||
.switchIfEmpty(Mono.just(new BooleanResponse<>(command, Boolean.FALSE)));
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ public class DefaultReactiveValueOperationsIntegrationTests<K, V> {
|
||||
.verify();
|
||||
}
|
||||
|
||||
@Test // DATAREDIS-602
|
||||
@Test // DATAREDIS-602, DATAREDIS-779
|
||||
public void setIfAbsent() {
|
||||
|
||||
K key = keyFactory.instance();
|
||||
@@ -135,7 +135,7 @@ public class DefaultReactiveValueOperationsIntegrationTests<K, V> {
|
||||
StepVerifier.create(valueOperations.setIfAbsent(key, value)).expectNext(false).verifyComplete();
|
||||
}
|
||||
|
||||
@Test // DATAREDIS-602
|
||||
@Test // DATAREDIS-602, DATAREDIS-779
|
||||
public void setIfPresent() {
|
||||
|
||||
K key = keyFactory.instance();
|
||||
|
||||
Reference in New Issue
Block a user