update unit test

This commit is contained in:
wangqiang32 2022-03-26 22:10:43 +08:00
parent f93813b38d
commit f9f0f58019

View File

@ -26,12 +26,12 @@ public class NamingUtilsTest {
@Test
public void testGetGroupedNameOptional() {
String onlyGroupName = NamingUtils.getGroupedNameOptional(StringUtils.EMPTY, "groupA");
assertEquals(onlyGroupName, "groupA@@");
assertEquals( "groupA@@",onlyGroupName);
String onlyServiceName = NamingUtils.getGroupedNameOptional("serviceA", StringUtils.EMPTY);
assertEquals(onlyServiceName, "@@serviceA");
assertEquals("@@serviceA",onlyServiceName);
String groupNameAndServiceName = NamingUtils.getGroupedNameOptional("serviceA", "groupA");
assertEquals(groupNameAndServiceName, "groupA@@serviceA");
assertEquals("groupA@@serviceA",groupNameAndServiceName);
}
}