0
我正在使用GWT覆盖类型,我不知道如何测试。我想以某种方式确保我的Overlay对象访问器匹配序列化为JSON的类中的字段名称。测试GWT覆盖类型
例如
//Class to be serialized to JSON
public class SoCool1 implements SoCool
{
private String myString;
public String getMyString()
{
return myString;
}
}
//Overlay class
public class SoCool2 extends JavaScriptObject implements SoCool
{
public final native String getMyString() /*-{
return this.myString;
}-*/;
}
如何测试该SoCool2本地方法的返回现场匹配SoCool1?