@@ -43,34 +43,34 @@ public void getChannel_success() throws Exception {
4343 }
4444
4545 @ Test
46- public void returnChannel_success () throws Exception {
46+ public void returnToPool_success () throws Exception {
4747 FakeChannelPool fakeChannelPool = new FakeChannelPool ();
4848 S2AChannelPool s2aChannelPool = S2AGrpcChannelPool .create (fakeChannelPool );
4949
50- s2aChannelPool .returnChannel (s2aChannelPool .getChannel ());
50+ s2aChannelPool .returnToPool (s2aChannelPool .getChannel ());
5151
5252 assertThat (fakeChannelPool .isChannelCached ()).isFalse ();
5353 }
5454
5555 @ Test
56- public void returnChannel_channelStillCachedBecauseMultipleChannelsRetrieved () throws Exception {
56+ public void returnToPool_channelStillCachedBecauseMultipleChannelsRetrieved () throws Exception {
5757 FakeChannelPool fakeChannelPool = new FakeChannelPool ();
5858 S2AChannelPool s2aChannelPool = S2AGrpcChannelPool .create (fakeChannelPool );
5959
6060 s2aChannelPool .getChannel ();
61- s2aChannelPool .returnChannel (s2aChannelPool .getChannel ());
61+ s2aChannelPool .returnToPool (s2aChannelPool .getChannel ());
6262
6363 assertThat (fakeChannelPool .isChannelCached ()).isTrue ();
6464 }
6565
6666 @ Test
67- public void returnChannel_failureBecauseChannelWasNotFromPool () throws Exception {
67+ public void returnToPool_failureBecauseChannelWasNotFromPool () throws Exception {
6868 S2AChannelPool s2aChannelPool = S2AGrpcChannelPool .create (new FakeChannelPool ());
6969
7070 IllegalArgumentException expected =
7171 assertThrows (
7272 IllegalArgumentException .class ,
73- () -> s2aChannelPool .returnChannel (mock (Channel .class )));
73+ () -> s2aChannelPool .returnToPool (mock (Channel .class )));
7474 assertThat (expected )
7575 .hasMessageThat ()
7676 .isEqualTo (
0 commit comments