From a70cc585a9ec2cc8fb21e0a072c750c798c55191 Mon Sep 17 00:00:00 2001 From: Redkale Date: Mon, 27 May 2024 15:02:52 +0800 Subject: [PATCH] Update BiFunctionConvertTest.java --- .../test/convert/BiFunctionConvertTest.java | 51 ++++++------------- 1 file changed, 16 insertions(+), 35 deletions(-) diff --git a/src/test/java/org/redkale/test/convert/BiFunctionConvertTest.java b/src/test/java/org/redkale/test/convert/BiFunctionConvertTest.java index c435e30b6..e7028590e 100644 --- a/src/test/java/org/redkale/test/convert/BiFunctionConvertTest.java +++ b/src/test/java/org/redkale/test/convert/BiFunctionConvertTest.java @@ -1,23 +1,21 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package org.redkale.test.convert; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.redkale.convert.ConvertField; -import org.redkale.convert.json.JsonConvert; -import org.redkale.util.Attribute; - -/* - * test - * - * @author zhangjx - */ public class BiFunctionConvertTest { + public static class GamePlayer { + + public int userid; + + public String username; + + public int[] cards; + } + + public static class GameTable { + + public int tableid; + + public GamePlayer[] players; + } + @Test public void run() throws Throwable { GamePlayer player1 = new GamePlayer(); @@ -58,21 +56,4 @@ public class BiFunctionConvertTest { // {"players":[{"cards":[11,12,13,14,15],"userid":1,"username":"玩家1"},{"cards":[21,22,23,24,25],"userid":2,"username":"玩家2"},{"cards":[31,32,33,34,35],"userid":3,"username":"玩家3"}],"tableid":100} // {"players":[{"cards":[11,12,13,14,15],"userid":1,"username":"玩家1"},{"cards":[21,22,23,24,25],"userid":2,"username":"玩家2"},{"userid":3,"username":"玩家3"}],"tableid":100,"extcol1":30,"extcol2":"扩展字段值"} } - - public static class GamePlayer { - - public int userid; - - public String username; - - public int[] cards; - } - - public static class GameTable { - - public int tableid; - - public GamePlayer[] players; - } - }