Skip to content

Commit

Permalink
fix spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao committed Nov 16, 2024
1 parent 9c884fa commit c1a87b4
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,12 @@ public void testMaxConnectionPerNode() {
Assertions.assertEquals(maxConnectionPerNode, stubManager.stubs.size());
}


@Test
public void testAddressTrim() {
final var tlsAddress = "tls://localhost:6648";
Assertions.assertEquals("localhost:6648", OxiaStub.getAddress(tlsAddress));

final var planTxtAddress = "localhost:6648";
final var planTxtAddress = "localhost:6648";
Assertions.assertEquals("localhost:6648", OxiaStub.getAddress(planTxtAddress));
}

Expand All @@ -159,13 +158,11 @@ public void testTlsCredential() {
channelCredential = OxiaStub.getChannelCredential(tlsAddress, true);
Assertions.assertInstanceOf(TlsChannelCredentials.class, channelCredential);


final var planTxtAddress = "localhost:6648";
channelCredential = OxiaStub.getChannelCredential(planTxtAddress, false);
Assertions.assertInstanceOf(InsecureChannelCredentials.class, channelCredential);

channelCredential = OxiaStub.getChannelCredential(planTxtAddress, true);
Assertions.assertInstanceOf(TlsChannelCredentials.class, channelCredential);
}

}

0 comments on commit c1a87b4

Please sign in to comment.