Skip to content

Commit

Permalink
update code format. (#13076)
Browse files Browse the repository at this point in the history
  • Loading branch information
stone-98 authored Mar 3, 2025
1 parent fa79474 commit 93bda0f
Show file tree
Hide file tree
Showing 20 changed files with 64 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

public abstract class AbstractInstanceOperate_ITCase {
public abstract class AbstractInstanceOperateNamingITCase {

private NamingService naming;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
*/
@SpringBootTest(classes = Nacos.class, properties = {
"server.servlet.context-path=/nacos"}, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
class CPInstancesAPI_ITCase extends NamingBase {
class CPInstancesAPINamingITCase extends NamingBase {

private NamingService naming;

Expand Down Expand Up @@ -87,7 +87,7 @@ void cleanup() throws Exception {
* @ExpectResult :
*/
@Test
void registerInstance_ephemeral_true() throws Exception {
void registerInstanceEphemeralTrue() throws Exception {
String serviceName = NamingBase.randomDomainName();

Instance instance = new Instance();
Expand All @@ -107,7 +107,7 @@ void registerInstance_ephemeral_true() throws Exception {
* @ExpectResult :
*/
@Test
void registerInstance_ephemeral_false() throws Exception {
void registerInstanceEphemeralFalse() throws Exception {
String serviceName = NamingBase.randomDomainName();
namingServiceCreate(serviceName, TEST_NAMESPACE_1, TEST_GROUP_1);

Expand All @@ -128,7 +128,7 @@ void registerInstance_ephemeral_false() throws Exception {
* @ExpectResult :
*/
@Test
void registerInstance_ephemeral_false_deregisterInstance() throws Exception {
void registerInstanceEphemeralFalseDeregisterInstance() throws Exception {
String serviceName = NamingBase.randomDomainName();
namingServiceCreate(serviceName, TEST_NAMESPACE_1, TEST_GROUP_1);

Expand Down Expand Up @@ -163,7 +163,7 @@ void createService() throws Exception {
* @ExpectResult :
*/
@Test
void deleteService_hasInstace() {
void deleteServiceHasInstance() {
String serviceName = NamingBase.randomDomainName();

ResponseEntity<String> registerResponse = request(NamingBase.NAMING_CONTROLLER_PATH + "/instance",
Expand Down Expand Up @@ -214,7 +214,7 @@ void getService() throws Exception {
* @ExpectResult :
*/
@Test
void getService_1() throws Exception {
void getService1() throws Exception {
String serviceName = NamingBase.randomDomainName();
ListView<String> listView = naming1.getServicesOfServer(1, 50);

Expand Down Expand Up @@ -258,7 +258,7 @@ void listService() throws Exception {
* @ExpectResult :
*/
@Test
void registerInstance_api() throws Exception {
void registerInstanceApi() throws Exception {
String serviceName = NamingBase.randomDomainName();
namingServiceCreate(serviceName, Constants.DEFAULT_NAMESPACE_ID);

Expand All @@ -282,7 +282,7 @@ void registerInstance_api() throws Exception {
* @ExpectResult :
*/
@Test
void registerInstance_query() throws Exception {
void registerInstanceQuery() throws Exception {
String serviceName = NamingBase.randomDomainName();
namingServiceCreate(serviceName, Constants.DEFAULT_NAMESPACE_ID);

Expand All @@ -307,7 +307,7 @@ void registerInstance_query() throws Exception {
* @ExpectResult :
*/
@Test
void registerInstance_2() throws Exception {
void registerInstance2() throws Exception {
String serviceName = NamingBase.randomDomainName();
namingServiceCreate(serviceName, Constants.DEFAULT_NAMESPACE_ID);
namingServiceCreate(serviceName, Constants.DEFAULT_NAMESPACE_ID, TEST_GROUP_1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

@SpringBootTest(classes = Nacos.class, properties = {
"server.servlet.context-path=/nacos"}, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
class ClientBeat_ITCase extends NamingBase {
class ClientBeatNamingITCase extends NamingBase {

private NamingService naming;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
RpcConstants.NACOS_SERVER_RPC + ".enableTls=true", RpcConstants.NACOS_SERVER_RPC + ".compatibility=true",
RpcConstants.NACOS_SERVER_RPC + ".certChainFile=test-server-cert.pem",
RpcConstants.NACOS_SERVER_RPC + ".certPrivateKey=test-server-key.pem"}, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
class NamingCompatibilityServiceTls_ITCase {
class CompatibilityServiceTlsNamingITCase {

private NamingMaintainService namingMaintainService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
*/
@SpringBootTest(classes = Nacos.class, properties = {
"server.servlet.context-path=/nacos"}, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
public class InstanceOperate_ITCase extends AbstractInstanceOperate_ITCase {
public class InstanceOperateNamingITCase extends AbstractInstanceOperateNamingITCase {

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
**/
@SpringBootTest(classes = Nacos.class, properties = {
"server.servlet.context-path=/nacos"}, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
class NamingMaintainService_ITCase {
class MaintainServiceNamingITCase {

private NamingMaintainService namingMaintainService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
*/
@SpringBootTest(classes = Nacos.class, properties = {
"server.servlet.context-path=/nacos"}, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
class MultiTenant_InstanceAPI_ITCase {
class MultiTenantInstanceAPINamingITCase {

private final List<Instance> instances = Collections.emptyList();

Expand Down Expand Up @@ -108,7 +108,7 @@ void init() throws Exception {
* @ExpectResult :
*/
@Test
void multipleTenant_listInstance() throws Exception {
void multipleTenantListInstance() throws Exception {
String serviceName = randomDomainName();

naming1.registerInstance(serviceName, "11.11.11.11", 80);
Expand Down Expand Up @@ -140,7 +140,7 @@ void multipleTenant_listInstance() throws Exception {
* @ExpectResult :
*/
@Test
void multipleTenant_group_listInstance() throws Exception {
void multipleTenantGroupListInstance() throws Exception {
String serviceName = randomDomainName();

naming1.registerInstance(serviceName, TEST_GROUP_1, "11.11.11.11", 80);
Expand Down Expand Up @@ -176,7 +176,7 @@ void multipleTenant_group_listInstance() throws Exception {
* @ExpectResult :
*/
@Test
void multipleTenant_getInstance() throws Exception {
void multipleTenantGetInstance() throws Exception {
String serviceName = randomDomainName();

naming1.registerInstance(serviceName, "11.11.11.11", 80);
Expand Down Expand Up @@ -207,7 +207,7 @@ void multipleTenant_getInstance() throws Exception {
* @ExpectResult :
*/
@Test
void multipleTenant_group_getInstance() throws Exception {
void multipleTenantGroupGetInstance() throws Exception {
String serviceName = randomDomainName();

naming1.registerInstance(serviceName, "11.11.11.11", 80);
Expand Down Expand Up @@ -240,7 +240,7 @@ void multipleTenant_group_getInstance() throws Exception {
* @ExpectResult :
*/
@Test
void multipleTenant_putInstance() throws Exception {
void multipleTenantPutInstance() throws Exception {
String serviceName = randomDomainName();

naming1.registerInstance(serviceName, "11.11.11.11", 80);
Expand Down Expand Up @@ -278,7 +278,7 @@ void multipleTenant_putInstance() throws Exception {
* @ExpectResult :
*/
@Test
void multipleTenant_group_putInstance() throws Exception {
void multipleTenantGroupPutInstance() throws Exception {
String serviceName = randomDomainName();

naming1.registerInstance(serviceName, "11.11.11.11", 80);
Expand All @@ -305,7 +305,7 @@ void multipleTenant_group_putInstance() throws Exception {
* @ExpectResult :
*/
@Test
void multipleTenant_group_patchInstance() throws Exception {
void multipleTenantGroupPatchInstance() throws Exception {
String serviceName = randomDomainName();

naming1.registerInstance(serviceName, "11.11.11.11", 80);
Expand Down Expand Up @@ -341,7 +341,7 @@ void multipleTenant_group_patchInstance() throws Exception {
* @ExpectResult :
*/
@Test
void multipleTenant_updateInstance_notExsitInstance() throws Exception {
void multipleTenantUpdateInstanceNotExistInstance() throws Exception {
String serviceName = randomDomainName();

naming1.registerInstance(serviceName, "11.11.11.11", 80);
Expand Down Expand Up @@ -378,7 +378,7 @@ void multipleTenant_updateInstance_notExsitInstance() throws Exception {
* @ExpectResult :
*/
@Test
void multipleTenant_group_updateInstance_notExsitInstance() throws Exception {
void multipleTenantGroupUpdateInstanceNotExistInstance() throws Exception {
String serviceName = randomDomainName();

naming1.registerInstance(serviceName, "11.11.11.11", 80);
Expand Down Expand Up @@ -406,7 +406,7 @@ void multipleTenant_group_updateInstance_notExsitInstance() throws Exception {
* @ExpectResult :
*/
@Test
void multipleTenant_updateInstance() throws Exception {
void multipleTenantUpdateInstance() throws Exception {
String serviceName = randomDomainName();

naming2.registerInstance(serviceName, "22.22.22.22", 80);
Expand Down
Loading

0 comments on commit 93bda0f

Please sign in to comment.