Android单元测试研究与实践(18)

发表于:2017-02-21来源:meituan作者:潘铭炜 黄超点击数: 标签:单元测试Android
@RealObjectprivatePointrealPoint; ... public void__constructor__( int x, int y){ realPoint.x=x; realPoint.y=y;
 
  • @RealObject private Point realPoint; 
  •  
  • ... 
  •  
  • public void __constructor__(int x, int y) { 
  •  
  • realPoint.x = x; 
  •  
  • realPoint.y = y; 

    原文转自:http://tech.meituan.com/Android_unit_test.html