Add setPrimaryContact to test
This commit is contained in:
parent
29e208f4e4
commit
a05d6ff666
1 changed files with 7 additions and 0 deletions
|
@ -41,6 +41,13 @@ public class WrapperTester extends AndroidTestCase {
|
||||||
mCore.setVideoMulticastTtl(4);
|
mCore.setVideoMulticastTtl(4);
|
||||||
Assert.assertEquals(4, mCore.getVideoMulticastTtl());
|
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());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue