The following issues were found

src/test/java/com/alibaba/json/bvt/support/spring/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/serializer/SerializeWriterTest_BrowserSecure3.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 SerializeWriterTest_BrowserSecure3 extends TestCase {

    public void test_0() throws Exception {
        String text = JSON.toJSONString("\n", SerializerFeature.BrowserSecure);
        Assert.assertEquals("\"\\n\"", text);
    }

}

            

Reported by PMD.

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

    public void test_0() throws Exception {
        SerializeWriter out = new SerializeWriter(1);
        out.config(SerializerFeature.QuoteFieldNames, true);
        out.config(SerializerFeature.UseSingleQuotes, true);
        out.writeFieldValue(',', "name", (Enum) null);
        Assert.assertEquals(",'name':null", out.toString());

            

Reported by PMD.

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

    public void test_writer_1() throws Exception {
        SerializeWriter out = new SerializeWriter(14);
        out.config(SerializerFeature.QuoteFieldNames, true);

        try {
            JSONSerializer serializer = new JSONSerializer(out);

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/path/JSONPath_array_put_2.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: 16

              
public class JSONPath_array_put_2 extends TestCase {

    public void test_put() throws Exception {
        Map<String, Object> root = new HashMap<String, Object>();
        List list = new ArrayList();
        root.put("values", list);

        JSONPath.arrayAdd(root, "$.values", 1, 2,3 );

            

Reported by PMD.

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

    public void test_writer_1() throws Exception {
        StringWriter strOut = new StringWriter();
        SerializeWriter out = new SerializeWriter(strOut, 14);
        out.config(SerializerFeature.BrowserCompatible, true);

        try {

            

Reported by PMD.

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

    public <T extends A> 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 A);

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/parser/stream/JSONReaderTest_1.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

              import junit.framework.TestCase;

public class JSONReaderTest_1 extends TestCase {
	public void test_read() throws Exception {
		String text = "{\"id\":1001}";
		JSONReader reader = new JSONReader(new StringReader(text));
		Assert.assertEquals(JSONToken.LBRACE, reader.peek());
		reader.startObject();
		Assert.assertEquals(JSONToken.LITERAL_STRING, reader.peek());

            

Reported by PMD.

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

    public void test_path() throws Exception {
        String a = "{\"key\":\"value\",\"10.0.1.1\":\"haha\"}";
        Object x = JSON.parse(a);
        JSONPath.set(x, "$.test", "abc");
        Object o = JSONPath.eval(x, "$.10\\.0\\.1\\.1");
        Assert.assertEquals("haha", o);

            

Reported by PMD.

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

              import junit.framework.TestCase;

public class JSONPath_3 extends TestCase {
    public void test_path() throws Exception {
        String a = "{\"a\":{\"b\":{\"c\":{\"d\":{\"e\":{\"f\":{\"g\":{\"h\":{\"i\":{\"j\":{\"k\":{\"l\":\"\"}}}}}}}}}}}}";
        Object x = JSON.parse(a);
        Assert.assertTrue(JSONPath.contains(x, "$.a.b.c.d.e.f.g.h.i"));
    }
}

            

Reported by PMD.