mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
add test
This commit is contained in:
parent
69b3d4565c
commit
531e467eeb
@ -0,0 +1,12 @@
|
||||
package cn.hutool.json;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
public class IssueIA5YOETest {
|
||||
@Test
|
||||
public void parseObjTest() {
|
||||
String res ="{\"id\":\"chatcmpl-9azySxFBm5hjtaMCccREpCHF3gbQ3\",\"object\":\"chat.completion.chunk\",\"created\":1718605064,\"model\":\"gpt-4o-2024-05-13\",\"system_fingerprint\":\"fp_319be4768e\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\\\"\"},\"logprobs\":null,\"finish_reason\":null}]}";
|
||||
Assert.assertNotNull(JSONUtil.parseObj(res));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user