Fix regression in AbstractJackson2Encoder

Closes gh-29274
This commit is contained in:
rstoyanchev
2022-10-07 18:05:35 +01:00
parent b3afafbf5a
commit 1afc1fc90d
2 changed files with 9 additions and 0 deletions

View File

@@ -144,6 +144,14 @@ public class Jackson2JsonEncoderTests extends AbstractEncoderTests<Jackson2JsonE
.verifyComplete());
}
@Test
public void encodeNonStreamEmpty() {
testEncode(Flux.empty(), Pojo.class, step -> step
.consumeNextWith(expectString("["))
.consumeNextWith(expectString("]"))
.verifyComplete());
}
@Test // gh-29038
void encodeNonStreamWithErrorAsFirstSignal() {
String message = "I'm a teapot";