File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
reactor-netty-core/src/test/java/reactor/netty Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2017-2021 VMware, Inc. or its affiliates, All Rights Reserved.
2+ * Copyright (c) 2017-2023 VMware, Inc. or its affiliates, All Rights Reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
4141import io .netty .channel .FileRegion ;
4242import io .netty .channel .embedded .EmbeddedChannel ;
4343import io .netty .handler .codec .MessageToMessageEncoder ;
44+ import io .netty .handler .codec .UnsupportedMessageTypeException ;
4445import io .netty .handler .ssl .SslContext ;
4546import io .netty .handler .ssl .SslContextBuilder ;
4647import io .netty .handler .ssl .SslHandler ;
@@ -244,6 +245,8 @@ public NettyOutbound withConnection(Consumer<? super Connection> withConnection)
244245 .endsWith ("End of File" );
245246
246247 assertThat (f .isSuccess ()).isFalse ();
248+ assertThat (f .cause ()).isNotNull ()
249+ .isInstanceOf (UnsupportedMessageTypeException .class );
247250 assertThat (channel .finishAndReleaseAll ()).isTrue ();
248251 }
249252
You can’t perform that action at this time.
0 commit comments