mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Add setPrimaryContact to test
This commit is contained in:
parent
29e208f4e4
commit
a05d6ff666
1 changed files with 7 additions and 0 deletions
|
|
@ -40,6 +40,13 @@ public class WrapperTester extends AndroidTestCase {
|
|||
|
||||
mCore.setVideoMulticastTtl(4);
|
||||
Assert.assertEquals(4, mCore.getVideoMulticastTtl());
|
||||
|
||||
String address = "Linphone Android <sip:linphone.android@unknown-host>";
|
||||
mCore.setPrimaryContact(address);
|
||||
Assert.assertEquals(LinphoneCoreFactory.instance().createLinphoneAddress(address).getDisplayName(),
|
||||
LinphoneCoreFactory.instance().createLinphoneAddress(mCore.getPrimaryContact()).getDisplayName());
|
||||
Assert.assertEquals(LinphoneCoreFactory.instance().createLinphoneAddress(address).getUserName(),
|
||||
LinphoneCoreFactory.instance().createLinphoneAddress(mCore.getPrimaryContact()).getUserName());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue