mirror of
https://github.com/alibaba/fastjson.git
synced 2026-10-29 14:10:25 +08:00
add testcase for issue #694
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package com.alibaba.json.bvt.bug;
|
||||
|
||||
import org.junit.Assert;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class Bug_for_issue_694 extends TestCase {
|
||||
public void test_for_issue() throws Exception {
|
||||
Root root = JSON.parseObject("{\"entity\":{\"isBootomPluginClickable\":true,\"isMainPoi\":true}}", Root.class);
|
||||
Assert.assertTrue(root.entity.isBootomPluginClickable);
|
||||
Assert.assertTrue(root.entity.isMainPoi);
|
||||
}
|
||||
|
||||
public static class Root {
|
||||
public GSMapItemBIZEntity entity;
|
||||
|
||||
class GSMapItemBIZEntity {
|
||||
protected boolean isBootomPluginClickable = false; // 金融部门外币兑换业务网点 点击底部无需跳转
|
||||
protected boolean isMainPoi = false;
|
||||
|
||||
public boolean isBootomPluginClickable() {
|
||||
return isBootomPluginClickable;
|
||||
}
|
||||
|
||||
public void setBootomPluginClickable(boolean bootomPluginClickable) {
|
||||
isBootomPluginClickable = bootomPluginClickable;
|
||||
}
|
||||
|
||||
public boolean isMainPoi() {
|
||||
return isMainPoi;
|
||||
}
|
||||
|
||||
public void setMainPoi(boolean mainPoi) {
|
||||
isMainPoi = mainPoi;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user