Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Apr 23, 2016
1 parent ab293b7 commit 1ea0e24
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.alibaba.json.bvt.parser.deser.generic;

import java.util.List;

import org.junit.Assert;

import com.alibaba.fastjson.JSON;

import junit.framework.TestCase;

public class ListStrFieldTest extends TestCase {
public void test_0() throws Exception {
Model model = JSON.parseObject("{\"values\":null}", Model.class);
Assert.assertNull(model.values);
}

public static class Model {
public List<String> values;
}
}

0 comments on commit 1ea0e24

Please sign in to comment.