Skip to content

Commit ff36da1

Browse files
committed
Clean up unused methods and imports in Ratpack 1.4 tests
1 parent c9b182c commit ff36da1

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

instrumentation/ratpack/ratpack-1.4/testing/src/main/java/io/opentelemetry/instrumentation/ratpack/client/AbstractRatpackHttpClientTest.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,20 @@
44
import static io.opentelemetry.semconv.ServerAttributes.SERVER_ADDRESS;
55
import static io.opentelemetry.semconv.ServerAttributes.SERVER_PORT;
66

7-
import io.netty.channel.ConnectTimeoutException;
87
import io.netty.handler.codec.PrematureChannelClosureException;
98
import io.netty.handler.timeout.ReadTimeoutException;
109
import io.opentelemetry.api.common.AttributeKey;
1110
import io.opentelemetry.instrumentation.testing.junit.http.AbstractHttpClientTest;
1211
import io.opentelemetry.instrumentation.testing.junit.http.HttpClientResult;
1312
import io.opentelemetry.instrumentation.testing.junit.http.HttpClientTestOptions;
1413
import java.net.URI;
15-
import java.nio.channels.ClosedChannelException;
1614
import java.time.Duration;
1715
import java.util.Collections;
1816
import java.util.HashSet;
19-
import java.util.Locale;
2017
import java.util.Map;
2118
import java.util.Set;
2219
import org.junit.jupiter.api.AfterAll;
2320
import org.junit.jupiter.api.BeforeAll;
24-
import org.junit.jupiter.api.condition.OS;
2521
import ratpack.exec.Operation;
2622
import ratpack.exec.Promise;
2723
import ratpack.func.Action;
@@ -193,19 +189,4 @@ private static String nettyExpectedClientSpanNameMapper(URI uri, String method)
193189
}
194190
return HttpClientTestOptions.DEFAULT_EXPECTED_CLIENT_SPAN_NAME_MAPPER.apply(uri, method);
195191
}
196-
197-
private static boolean isWindows() {
198-
return System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("win");
199-
}
200-
201-
private static Throwable unwrapConnectionException(Throwable exception) {
202-
if (exception == null) {
203-
return null;
204-
}
205-
Throwable current = exception;
206-
while (current.getCause() != null && current.getCause() != current) {
207-
current = current.getCause();
208-
}
209-
return current;
210-
}
211192
}

0 commit comments

Comments
 (0)