The following issues were found

src/test/java/com/alibaba/json/bvt/serializer/filters/PropertyPreFilterClassLevelTest_private.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

              import junit.framework.TestCase;

public class PropertyPreFilterClassLevelTest_private extends TestCase {
    public void test_0() throws Exception {
        Object[] array = {new ModelA(), new ModelB() };
        
        SerializeConfig config = new SerializeConfig();
        config.addFilter(ModelA.class, // 
                         new SimplePropertyPreFilter("name"));

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/serializer/filters/PropertyPreFilterClassLevelTest.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

              import junit.framework.TestCase;

public class PropertyPreFilterClassLevelTest extends TestCase {
    public void test_0() throws Exception {
        Object[] array = {new ModelA(), new ModelB() };
        
        SerializeConfig config = new SerializeConfig();
        config.addFilter(ModelA.class, // 
                         new SimplePropertyPreFilter("name"));

            

Reported by PMD.

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

    public void test_0() throws Exception {
        String[][] array = new String[][] { new String[] { "a", "b" }, new String[] { "c", "d", "e" } };
        String text = JSON.toJSONString(array);
        String[][] array2 = JSON.parseObject(text, String[][].class);
        Assert.assertEquals("a", array2[0][0]);
        Assert.assertEquals("b", array2[0][1]);

            

Reported by PMD.

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

    public void test_0() throws Exception {
        Object[] array = { new ModelA(), new ModelB() };

        SerializeConfig config = new SerializeConfig();
        config.addFilter(ModelA.class, //
                         new AfterFilter() {

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/support/oracle/TestOracleDATE.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 oracle.sql.TIMESTAMP;

public class TestOracleDATE extends TestCase {
    public void test_0 () throws Exception {
        Timestamp date = new Timestamp(System.currentTimeMillis());
        TIMESTAMP timestamp = new TIMESTAMP(date);
        
        String text = JSON.toJSONString(timestamp);
        Assert.assertEquals(date.getTime(), Long.parseLong(text));

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/support/oracle/TestOracleTIMESTAMP.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 oracle.sql.DATE;

public class TestOracleTIMESTAMP extends TestCase {
    public void test_0 () throws Exception {
        Timestamp date = new Timestamp(System.currentTimeMillis());
        DATE timestamp = new DATE(date);
        
        String text = JSON.toJSONString(timestamp);
        Assert.assertEquals((date.getTime() / 1000) * 1000, Long.parseLong(text));

            

Reported by PMD.

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

    public void test_0() throws Exception {
        Object[] array = { new ModelA(), new ModelB() };

        SerializeConfig config = new SerializeConfig();
        config.addFilter(ModelA.class, //
                         new AfterFilter() {

            

Reported by PMD.

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

              import junit.framework.TestCase;

public class JSONPath_list extends TestCase {
    public void test_list_map() throws Exception {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("val", new Object());
        List list = new ArrayList();
        list.add(map);
        Assert.assertSame(map.get("val"), new JSONPath("$[0].val").eval(list));

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/serializer/features/WriteNonStringValueAsStringTestMap.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

              import java.util.Map;

public class WriteNonStringValueAsStringTestMap extends TestCase {
    public void test_0() throws Exception {
        Map map = new LinkedHashMap();
        map.put("key1", new Float(100));
        map.put("key2", 100);
        map.put("key3", Boolean.TRUE);
        map.put("key4", true);

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/serializer/date/DateTest2.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 DateTest2 extends TestCase {
    
    public void test_null() throws Exception {
        long millis = System.currentTimeMillis();
        VO vo = new VO();
        vo.setValue(new Date(millis));
        
        Assert.assertEquals("new Date(" + millis + ")", JSON.toJSONString(new Date(millis), SerializerFeature.WriteClassName));

            

Reported by PMD.