DATAREDIS-629 - Adopt changed Mono and Flux error handling API.

Replace Flux/Mono.onErrorResumeWith(…) with Flux/Mono.onErrorMap(…) and turn translateException into a method returning a mapping function instead of a reactive type emitting the mapped exception. Replace otherwiseIfEmpty(…) with switchIfEmpty(…) and otherwiseReturn(…) with onErrorReturn(…).
This commit is contained in:
Mark Paluch
2017-04-19 15:33:15 +02:00
parent 89ae33f8c8
commit eeac253c06
5 changed files with 13 additions and 23 deletions

View File

@@ -110,7 +110,7 @@ public class LettuceReactiveKeyCommandsTests extends LettuceReactiveCommandsTest
}
@Test(expected = RedisSystemException.class) // DATAREDIS-525
public void renameShouldThrowErrorWhenKeyDoesNotExit() {
public void renameShouldThrowErrorWhenKeyDoesNotExist() {
assertThat(connection.keyCommands().rename(KEY_1_BBUFFER, KEY_2_BBUFFER).block(), is(true));
}