DATAREDIS-779 - Polishing.

Reformat code. Add ticket references to tests.

Original pull request: #317.
This commit is contained in:
Mark Paluch
2018-03-07 10:34:29 +01:00
parent fe80804873
commit 2bc940a558
2 changed files with 3 additions and 4 deletions

View File

@@ -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)));
}));
}

View File

@@ -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();