File tree 1 file changed +4
-1
lines changed
reactor-netty-core/src/test/java/reactor/netty
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
41
41
import io .netty .channel .FileRegion ;
42
42
import io .netty .channel .embedded .EmbeddedChannel ;
43
43
import io .netty .handler .codec .MessageToMessageEncoder ;
44
+ import io .netty .handler .codec .UnsupportedMessageTypeException ;
44
45
import io .netty .handler .ssl .SslContext ;
45
46
import io .netty .handler .ssl .SslContextBuilder ;
46
47
import io .netty .handler .ssl .SslHandler ;
@@ -244,6 +245,8 @@ public NettyOutbound withConnection(Consumer<? super Connection> withConnection)
244
245
.endsWith ("End of File" );
245
246
246
247
assertThat (f .isSuccess ()).isFalse ();
248
+ assertThat (f .cause ()).isNotNull ()
249
+ .isInstanceOf (UnsupportedMessageTypeException .class );
247
250
assertThat (channel .finishAndReleaseAll ()).isTrue ();
248
251
}
249
252
You can’t perform that action at this time.
0 commit comments