This commit is contained in:
Looly 2022-01-25 10:46:53 +08:00
parent efeddc1469
commit 06db212f24

View File

@ -12,4 +12,10 @@ public class NamingCaseTest {
.set("customerNickV2", "customer_nick_v2") .set("customerNickV2", "customer_nick_v2")
.forEach((key, value) -> Assert.assertEquals(value, NamingCase.toUnderlineCase(key))); .forEach((key, value) -> Assert.assertEquals(value, NamingCase.toUnderlineCase(key)));
} }
@Test
public void toUnderLineCaseTest2(){
final String wPRunOZTime = NamingCase.toUnderlineCase("wPRunOZTime");
Assert.assertEquals("w_P_run_OZ_time", wPRunOZTime);
}
} }