体验新版 GitCode,发现更多精彩内容 >>
package com.example.datadriver; import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry; import org.junit.Test; import static org.junit.Assert.assertEquals; public class ExampleOhosTest { @Test public void testBundleName() { final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName(); assertEquals("com.example.datadriver", actualBundleName); } }