use of io.lettuce.core.codec.StringCodec in project lettuce-core by lettuce-io.
the class OutputRegistryUnitTests method streamingTypeOfKeyOuputWithCodecIsAssignableFromString.
@Test
void streamingTypeOfKeyOuputWithCodecIsAssignableFromString() {
OutputType outputComponentType = OutputRegistry.getStreamingType(KeyListOutput.class);
ResolvableType resolvableType = outputComponentType.withCodec(new StringCodec());
assertThat(resolvableType.isAssignableFrom(ResolvableType.forClass(String.class))).isTrue();
}
Aggregations