String text = JSON.toJSONString(vo, filter);
Assert.assertTrue("{\"id\":123,\"name\":\"sandzhangtoo\"}".equals(text) || "{\"name\":\"sandzhangtoo\",\"id\":123}".equals(text));
}
public void test_all_map() throws Exception {
SimplePropertyPreFilter filter = new SimplePropertyPreFilter(VO.class);
String text = JSON.toJSONString(map, filter);
Assert.assertTrue("{\"id\":123,\"name\":\"sandzhangtoo\"}".equals(text) || "{\"name\":\"sandzhangtoo\",\"id\":123}".equals(text));
}