The following issues were found

src/test/java/com/alibaba/json/bvt/serializer/TreeSetTest.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 15

              
public class TreeSetTest extends TestCase {
    
    public void test_null() throws Exception {
        VO vo = new VO();
        vo.setValue(new TreeSet());
        
        Assert.assertEquals("{\"@type\":\"com.alibaba.json.bvt.serializer.TreeSetTest$VO\",\"value\":TreeSet[]}", JSON.toJSONString(vo, SerializerFeature.WriteClassName));
    }

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/parser/deser/DefaultObjectDeserializerTest9.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 14

              
public class DefaultObjectDeserializerTest9 extends TestCase {

    public <T> void test_1() throws Exception {
        T[] list = JSON.parseObject("[{}]", new TypeReference<T[]>() {
        });
        Assert.assertEquals(1, list.length);
        Assert.assertNotNull(list[0]);
        Assert.assertTrue(list[0] instanceof Map);

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/path/JSONPath_issue1208.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 9

              
public class JSONPath_issue1208 extends TestCase {

    public void test_largeNumberProperty() throws Exception {
        String json1 = "{\"articles\":{\"2147483647\":{\"XXX\":\"xiu\"}}}";
        String path1 = "$.articles.2147483647.XXX";
        Object read = JSONPath.read(json1, path1);
        Assert.assertEquals("xiu", read);


            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/serializer/TestSpecial5.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 11

              
public class TestSpecial5 extends TestCase {

    public void test_1() throws Exception {
        StringBuilder buf = new StringBuilder();
        buf.append(' ');
        for (int i = 0; i < 1000; ++i) {
            buf.append((char) 160);
        }

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/serializer/TestSortField.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 13

              
public class TestSortField extends TestCase {

    public void test_0() throws Exception {
        Map<String, Object> map = new LinkedHashMap<String, Object>();

        map.put("nnn", "123");

        map.put("13", "123");

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/serializer/TestInnerClass1.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 10

              
public class TestInnerClass1 extends TestCase {

    public void test_inner() throws Exception {
        VO vo = new VO();
        String text = JSON.toJSONString(vo);
        Assert.assertEquals("{\"value\":234}", text);
    }


            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/serializer/TestInnerClass.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 10

              
public class TestInnerClass extends TestCase {

    public void test_inner() throws Exception {
        VO vo = new VO();
        String text = JSON.toJSONString(vo);
        Assert.assertEquals("{\"value\":234}", text);
    }


            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/serializer/ShortSerializerTest.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 12

              
public class ShortSerializerTest extends TestCase {
    
    public void test_null() throws Exception {
        VO vo = new VO();
        
        Assert.assertEquals("{\"value\":null}", JSON.toJSONString(vo, SerializerFeature.WriteMapNullValue));
    }


            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/serializer/ShortFieldSerializerTest.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 12

              
public class ShortFieldSerializerTest extends TestCase {

    public void test_0() {
        Assert.assertEquals("{\"value\":null}", JSON.toJSONString(new Entity(), SerializerFeature.WriteMapNullValue));
        Assert.assertEquals("{\"value\":0}", JSON.toJSONString(new Entity(), SerializerFeature.WriteMapNullValue, SerializerFeature.WriteNullNumberAsZero));
    }

    public static class Entity {

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/support/spring/mock/entity/FastJsonParentTestVO.java
1 issues
The class 'FastJsonParentTestVO' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=4)
Design

Line: 20

               * @author Victor.Zxy
 * @version 1.0
 */
public class FastJsonParentTestVO {

	private String name;
	
	private List<FastJsonSonTestVO> sonList;
	

            

Reported by PMD.