GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Port: Use random generated LocalAddress in tests that use local trans… · netty/netty@0a25229

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • codec-haproxy/src/test/java/io/netty/handler/codec/haproxy
    • HAProxyIntegrationTest.java
  • handler-proxy/src/test/java/io/netty/handler/proxy
    • HttpProxyHandlerTest.java
  • handler/src/test/java/io/netty/handler
    • ssl
      • OpenSslCertificateCompressionTest.java
      • SniClientJava8TestUtil.java
      • SniClientTest.java
      • SniHandlerTest.java
      • SslHandlerTest.java
      • ocsp
        • OcspTest.java
    • traffic
      • TrafficShapingHandlerTest.java
  • testsuite/src/main/java/io/netty/testsuite/transport
    • AbstractSingleThreadEventLoopTest.java
  • transport/src/test/java/io/netty
    • bootstrap
      • BootstrapTest.java
    • channel
      • ChannelInitializerTest.java
      • DefaultChannelPipelineTest.java
      • ReentrantChannelTest.java
      • local
        • LocalChannelTest.java
      • pool
        • FixedChannelPoolMapDeadlockTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxyIntegrationTest.java‎

Copy file name to clipboardExpand all lines: codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxyIntegrationTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class HAProxyIntegrationTest {
4242
public void testBasicCase() throws Exception {
4343
final CountDownLatch latch = new CountDownLatch(1);
4444
final AtomicReference<HAProxyMessage> msgHolder = new AtomicReference<HAProxyMessage>();
45-
LocalAddress localAddress = new LocalAddress("HAProxyIntegrationTest");
45+
LocalAddress localAddress = new LocalAddress(HAProxyIntegrationTest.class);
4646

4747
EventLoopGroup group = new DefaultEventLoopGroup();
4848
ServerBootstrap sb = new ServerBootstrap();
Collapse file

‎handler-proxy/src/test/java/io/netty/handler/proxy/HttpProxyHandlerTest.java‎

Copy file name to clipboardExpand all lines: handler-proxy/src/test/java/io/netty/handler/proxy/HttpProxyHandlerTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public void testExceptionDuringConnect() throws Exception {
208208
Channel clientChannel = null;
209209
try {
210210
group = new DefaultEventLoopGroup(1);
211-
final LocalAddress addr = new LocalAddress("a");
211+
final LocalAddress addr = new LocalAddress(HttpProxyHandlerTest.class);
212212
final AtomicReference<Throwable> exception = new AtomicReference<Throwable>();
213213
ChannelFuture sf =
214214
new ServerBootstrap().channel(LocalServerChannel.class).group(group).childHandler(
Collapse file

‎handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateCompressionTest.java‎

Copy file name to clipboardExpand all lines: handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateCompressionTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public void runCertCompressionTest(SslContext clientSslContext, SslContext serve
319319
ServerBootstrap sb = new ServerBootstrap();
320320
sb.group(group).channel(LocalServerChannel.class)
321321
.childHandler(new CertCompressionTestChannelInitializer(serverPromise, serverSslContext));
322-
Channel serverChannel = sb.bind(new LocalAddress("testCertificateCompression"))
322+
Channel serverChannel = sb.bind(new LocalAddress(OpenSslCertificateCompressionTest.class))
323323
.syncUninterruptibly().channel();
324324

325325
Bootstrap bootstrap = new Bootstrap();
Collapse file

‎handler/src/test/java/io/netty/handler/ssl/SniClientJava8TestUtil.java‎

Copy file name to clipboardExpand all lines: handler/src/test/java/io/netty/handler/ssl/SniClientJava8TestUtil.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static void testSniClient(SslProvider sslClientProvider, SslProvider sslServerPr
8585
throws Exception {
8686
final String sniHost = "sni.netty.io";
8787
SelfSignedCertificate cert = CachedSelfSignedCertificate.getCachedCertificate();
88-
LocalAddress address = new LocalAddress("test");
88+
LocalAddress address = new LocalAddress(SniClientJava8TestUtil.class);
8989
EventLoopGroup group = new DefaultEventLoopGroup(1);
9090
SslContext sslServerContext = null;
9191
SslContext sslClientContext = null;
Collapse file

‎handler/src/test/java/io/netty/handler/ssl/SniClientTest.java‎

Copy file name to clipboardExpand all lines: handler/src/test/java/io/netty/handler/ssl/SniClientTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void execute() throws Throwable {
9898
@MethodSource("parameters")
9999
public void testSniClient(SslProvider sslServerProvider, SslProvider sslClientProvider) throws Exception {
100100
String sniHostName = "sni.netty.io";
101-
LocalAddress address = new LocalAddress("SniClientTest");
101+
LocalAddress address = new LocalAddress(SniClientTest.class);
102102
EventLoopGroup group = new DefaultEventLoopGroup(1);
103103
SelfSignedCertificate cert = CachedSelfSignedCertificate.getCachedCertificate();
104104
SslContext sslServerContext = null;
Collapse file

‎handler/src/test/java/io/netty/handler/ssl/SniHandlerTest.java‎

Copy file name to clipboardExpand all lines: handler/src/test/java/io/netty/handler/ssl/SniHandlerTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ public void testReplaceHandler(SslProvider provider) throws Exception {
583583
case OPENSSL:
584584
case OPENSSL_REFCNT:
585585
final String sniHost = "sni.netty.io";
586-
LocalAddress address = new LocalAddress("testReplaceHandler-" + Math.random());
586+
LocalAddress address = new LocalAddress(SniHandlerTest.class);
587587
EventLoopGroup group = new DefaultEventLoopGroup(1);
588588
Channel sc = null;
589589
Channel cc = null;
Collapse file

‎handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java‎

Copy file name to clipboardExpand all lines: handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ public void channelActive(ChannelHandlerContext ctx) {
654654
}
655655
});
656656

657-
serverChannel = sb.bind(new LocalAddress("SslHandlerTest")).sync().channel();
657+
serverChannel = sb.bind(new LocalAddress(SslHandlerTest.class)).sync().channel();
658658
clientChannel = cb.connect(serverChannel.localAddress()).sync().channel();
659659
latch.await();
660660

Collapse file

‎handler/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java‎

Copy file name to clipboardExpand all lines: handler/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ private static void handshake(SslProvider sslProvider, CountDownLatch latch, Cha
369369
try {
370370
EventLoopGroup group = new DefaultEventLoopGroup();
371371
try {
372-
LocalAddress address = new LocalAddress("handshake-" + Math.random());
372+
LocalAddress address = new LocalAddress(OcspTest.class);
373373
Channel server = newServer(group, address, serverSslContext, response, serverHandler);
374374
Channel client = newClient(group, address, clientSslContext, callback, clientHandler);
375375
try {
Collapse file

‎handler/src/test/java/io/netty/handler/traffic/TrafficShapingHandlerTest.java‎

Copy file name to clipboardExpand all lines: handler/src/test/java/io/netty/handler/traffic/TrafficShapingHandlerTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
137137
});
138138
}
139139
});
140-
final LocalAddress svrAddr = new LocalAddress("foo");
140+
final LocalAddress svrAddr = new LocalAddress(TrafficShapingHandlerTest.class);
141141
svrChannel = serverBootstrap.bind(svrAddr).sync().channel();
142142
Bootstrap bootstrap = new Bootstrap();
143143
bootstrap.channel(LocalChannel.class).group(GROUP).handler(new ChannelInitializer<Channel>() {
Collapse file

‎testsuite/src/main/java/io/netty/testsuite/transport/AbstractSingleThreadEventLoopTest.java‎

Copy file name to clipboardExpand all lines: testsuite/src/main/java/io/netty/testsuite/transport/AbstractSingleThreadEventLoopTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public void testShutdownGracefullyNoQuietPeriod() throws Exception {
131131

132132
// Not close the Channel to ensure the EventLoop is still shutdown in time.
133133
ChannelFuture cf = serverChannelClass() == LocalServerChannel.class
134-
? b.bind(new LocalAddress("local")) : b.bind(0);
134+
? b.bind(new LocalAddress(AbstractSingleThreadEventLoopTest.class)) : b.bind(0);
135135
cf.sync().channel();
136136

137137
Future<?> f = loop.shutdownGracefully(0, 1, TimeUnit.MINUTES);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.