mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
26 lines
739 B
Java
26 lines
739 B
Java
package org.linphone.test;
|
|
|
|
import junit.framework.Assert;
|
|
|
|
import org.linphone.core.LinphoneCore.RegistrationState;
|
|
|
|
import android.test.suitebuilder.annotation.LargeTest;
|
|
import android.test.suitebuilder.annotation.MediumTest;
|
|
import android.test.suitebuilder.annotation.SmallTest;
|
|
|
|
/**
|
|
* @author Sylvain Berfini
|
|
*/
|
|
public class AinitTestEnv extends SampleTest {
|
|
|
|
@SmallTest
|
|
@MediumTest
|
|
@LargeTest
|
|
public void testAInitLinphoneCore() {
|
|
LinphoneTestManager.createAndStart(aContext, iContext, 1);
|
|
|
|
solo.sleep(2000);
|
|
Assert.assertEquals(1, LinphoneTestManager.getLc().getProxyConfigList().length);
|
|
Assert.assertEquals(RegistrationState.RegistrationOk, LinphoneTestManager.getLc().getProxyConfigList()[0].getState());
|
|
}
|
|
}
|