mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
fix code
This commit is contained in:
@@ -79,7 +79,6 @@ public class JSONArrayTest {
|
||||
List<Exam> list = array.toList(Exam.class);
|
||||
Assert.assertFalse(list.isEmpty());
|
||||
Assert.assertEquals(Exam.class, list.get(0).getClass());
|
||||
;
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -123,7 +122,7 @@ public class JSONArrayTest {
|
||||
JSONArray array = JSONUtil.parseArray(jsonStr);
|
||||
|
||||
Exam[] list = array.toArray(new Exam[0]);
|
||||
Assert.assertFalse(0 == list.length);
|
||||
Assert.assertNotEquals(0, list.length);
|
||||
Assert.assertEquals(Exam.class, list[0].getClass());
|
||||
}
|
||||
|
||||
@@ -136,7 +135,7 @@ public class JSONArrayTest {
|
||||
JSONArray ja = JSONUtil.parseArray(json);
|
||||
|
||||
List<KeyBean> list = ja.toList(KeyBean.class);
|
||||
Assert.assertTrue(null == list.get(0));
|
||||
Assert.assertNull(list.get(0));
|
||||
Assert.assertEquals("avalue", list.get(1).getAkey());
|
||||
Assert.assertEquals("bvalue", list.get(1).getBkey());
|
||||
}
|
||||
@@ -175,7 +174,7 @@ public class JSONArrayTest {
|
||||
return map;
|
||||
}
|
||||
|
||||
class User {
|
||||
static class User {
|
||||
private Integer id;
|
||||
private String name;
|
||||
|
||||
|
@@ -354,7 +354,7 @@ public class JSONObjectTest {
|
||||
Assert.assertEquals("defaultBBB", bbb);
|
||||
}
|
||||
|
||||
public static enum TestEnum {
|
||||
public enum TestEnum {
|
||||
TYPE_A, TYPE_B
|
||||
}
|
||||
|
||||
|
@@ -17,7 +17,7 @@ public class EnvSettingInfo {
|
||||
private String hubRemoteUrl;
|
||||
|
||||
private String reportFolder = "/report";
|
||||
private String screenshotFolder = "/screenshot";;
|
||||
private String screenshotFolder = "/screenshot";
|
||||
|
||||
private String elementFolder = "/config/element/";
|
||||
private String suiteFolder = "/config/suite/";
|
||||
|
Reference in New Issue
Block a user