mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
add test
This commit is contained in:
parent
565d57d3cb
commit
486500d026
@ -729,4 +729,15 @@ public class JSONObjectTest {
|
|||||||
});
|
});
|
||||||
assertEquals("value2_edit", jsonObject.get("b"));
|
assertEquals("value2_edit", jsonObject.get("b"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void issue3844Test(){
|
||||||
|
String camelCaseStr = "{\"userAge\":\"123\"}";
|
||||||
|
final JSONObject entries = new JSONObject(camelCaseStr, null, (pair) -> {
|
||||||
|
pair.setKey(StrUtil.toUnderlineCase(pair.getKey()));
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
Console.log(entries);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user