问题描述
com.google.android.nmgiarc.gts.CarrierServicesTests#testAcsaPropertySetCorrectly fail
0-18 12:00:15 I/ModuleListener: [1/1] com.google.android.nmgiarc.gts.CarrierServicesTests#testAcsaPropertySetCorrectly fail:
junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:48)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at com.google.android.nmgiarc.gts.CarrierServicesTests.testAcsaPropertySetCorrectly(CarrierServicesTests.java:86)
at java.lang.reflect.Method.invoke(Native Method)
解决方案
testAcsaPropertySetCorrectly 测试失败的原因是"ro.com.google.acsa"这一properties为空, "ro.com.google.acsa" 应该是GMS中telephony相关配置, 据其他客户描述,google有文档要求在添加 carrier services时需要设置ro.com.google.acsa为true,烦请贵司自行添加该属性ro.com.google.acsa为true, 之前有客户修改后测试通过,谢谢。
public void testAcsaPropertySetCorrectly() throws RemoteException { if (!this.runTests) return; assertTrue(true ^ SystemProperties.get("ro.com.google.acsa").isEmpty()); }