update unit test
This commit is contained in:
parent
f93813b38d
commit
f9f0f58019
@ -26,12 +26,12 @@ public class NamingUtilsTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testGetGroupedNameOptional() {
|
public void testGetGroupedNameOptional() {
|
||||||
String onlyGroupName = NamingUtils.getGroupedNameOptional(StringUtils.EMPTY, "groupA");
|
String onlyGroupName = NamingUtils.getGroupedNameOptional(StringUtils.EMPTY, "groupA");
|
||||||
assertEquals(onlyGroupName, "groupA@@");
|
assertEquals( "groupA@@",onlyGroupName);
|
||||||
|
|
||||||
String onlyServiceName = NamingUtils.getGroupedNameOptional("serviceA", StringUtils.EMPTY);
|
String onlyServiceName = NamingUtils.getGroupedNameOptional("serviceA", StringUtils.EMPTY);
|
||||||
assertEquals(onlyServiceName, "@@serviceA");
|
assertEquals("@@serviceA",onlyServiceName);
|
||||||
|
|
||||||
String groupNameAndServiceName = NamingUtils.getGroupedNameOptional("serviceA", "groupA");
|
String groupNameAndServiceName = NamingUtils.getGroupedNameOptional("serviceA", "groupA");
|
||||||
assertEquals(groupNameAndServiceName, "groupA@@serviceA");
|
assertEquals("groupA@@serviceA",groupNameAndServiceName);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user