The following issues were found

src/test/java/com/alibaba/json/bvt/serializer/stream/StreamWriterTest_writeFieldValue.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 StreamWriterTest_writeFieldValue extends TestCase {
    public void test_0() throws Exception {
        StringWriter out = new StringWriter();
        
        SerializeWriter writer = new SerializeWriter(out, 10);
        Assert.assertEquals(10, writer.getBufferLength());
        

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/serializer/stream/StreamWriterTest_writeBytes1.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 StreamWriterTest_writeBytes1 extends TestCase {
    public void test_0() throws Exception {
        StringWriter out = new StringWriter();
        
        byte[] bytes = "民主共和君主宪".getBytes("GB2312");
        SerializeWriter writer = new SerializeWriter(out, 10);
        Assert.assertEquals(10, writer.getBufferLength());

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/serializer/stream/StreamWriterTest_writeBytes.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 StreamWriterTest_writeBytes extends TestCase {
    public void test_0() throws Exception {
        StringWriter out = new StringWriter();
        
        byte[] bytes = "民主".getBytes("GB2312");
        SerializeWriter writer = new SerializeWriter(out, 10);
        Assert.assertEquals(10, writer.getBufferLength());

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/support/jaxrs/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.

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

Line: 18

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

	private int id;
	
	private String name;


            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/parser/deser/date/DateDeserializerTest.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 DateDeserializerTest extends TestCase {

    public void test_date() throws Exception {
        long millis = System.currentTimeMillis();
        Assert.assertEquals(new Date(millis), JSON.parseObject("'" + millis + "'", Date.class));
    }
}

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/issue_2200/issue2224_3/ArrayGroupedCollection.java
1 issues
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead.
Design

Line: 5

              
import com.alibaba.json.bvt.issue_2200.issue2224.KeyedCollection;

abstract class ArrayGroupedCollection<TKey, TItem> extends KeyedCollection<TKey, TItem[]> {
}

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/parser/NullCheckTest.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 NullCheckTest extends TestCase {

    public void test_0() throws Exception {
        Assert.assertEquals(null, JSON.parse(null));
        Assert.assertEquals(null, JSON.parse(""));
        Assert.assertEquals(null, JSON.parse(" "));
    }
}

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/parser/JSONLexerTest_15.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 JSONLexerTest_15 extends TestCase {

    public void test_e() throws Exception {
        Assert.assertTrue(123e2D == ((Double) JSON.parse("123e2D")).doubleValue());
    }

}

            

Reported by PMD.

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

Line: 3

              package com.alibaba.json.bvt.issue_2200.issue2224;

public class Person {
    private String idNo;
    private String name;

    public String getIdNo() {
        return this.idNo;
    }

            

Reported by PMD.