Rename TCPTransportTests to TcpTransportTests (#26954)

Our convention is to use lower case when naming things "Tcp". For
example, `TcpTransport`. This commit renames the outlier
(TcpTransportTests) to use lower case.
This commit is contained in:
Tim Brooks 2017-10-10 20:15:14 -06:00 committed by GitHub
parent b63f718a0b
commit 4a870d8c63
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ import java.util.function.Consumer;
import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.equalTo;
/** Unit tests for TCPTransport */ /** Unit tests for TCPTransport */
public class TCPTransportTests extends ESTestCase { public class TcpTransportTests extends ESTestCase {
/** Test ipv4 host with a default port works */ /** Test ipv4 host with a default port works */
public void testParseV4DefaultPort() throws Exception { public void testParseV4DefaultPort() throws Exception {
@ -175,7 +175,7 @@ public class TCPTransportTests extends ESTestCase {
final boolean compressed = randomBoolean(); final boolean compressed = randomBoolean();
final AtomicBoolean called = new AtomicBoolean(false); final AtomicBoolean called = new AtomicBoolean(false);
Req request = new Req(randomRealisticUnicodeOfLengthBetween(10, 100)); Req request = new Req(randomRealisticUnicodeOfLengthBetween(10, 100));
ThreadPool threadPool = new TestThreadPool(TCPTransportTests.class.getName()); ThreadPool threadPool = new TestThreadPool(TcpTransportTests.class.getName());
AtomicReference<IOException> exceptionReference = new AtomicReference<>(); AtomicReference<IOException> exceptionReference = new AtomicReference<>();
try { try {
TcpTransport transport = new TcpTransport("test", Settings.builder().put("transport.tcp.compress", compressed).build(), TcpTransport transport = new TcpTransport("test", Settings.builder().put("transport.tcp.compress", compressed).build(),