mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
a10a57b236
commit
a99c0e65d4
@ -40,7 +40,7 @@ public class BeanPathTest {
|
||||
examInfoDict2.setExamType(1);
|
||||
examInfoDict2.setAnswerIs(0);
|
||||
|
||||
List<ExamInfoDict> examInfoDicts = new ArrayList<ExamInfoDict>();
|
||||
List<ExamInfoDict> examInfoDicts = new ArrayList<>();
|
||||
examInfoDicts.add(examInfoDict);
|
||||
examInfoDicts.add(examInfoDict1);
|
||||
examInfoDicts.add(examInfoDict2);
|
||||
@ -52,7 +52,7 @@ public class BeanPathTest {
|
||||
userInfoDict.setRealName("张三");
|
||||
userInfoDict.setExamInfoDict(examInfoDicts);
|
||||
|
||||
tempMap = new HashMap<String, Object>();
|
||||
tempMap = new HashMap<>();
|
||||
tempMap.put("userInfo", userInfoDict);
|
||||
tempMap.put("flag", 1);
|
||||
}
|
||||
@ -64,6 +64,7 @@ public class BeanPathTest {
|
||||
Assert.assertEquals("examInfoDict", pattern.patternParts.get(1));
|
||||
Assert.assertEquals("0", pattern.patternParts.get(2));
|
||||
Assert.assertEquals("id", pattern.patternParts.get(3));
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user