blob: 4d0bacd21106a014f59f4223e4ae2d8b76f28ea1 [file] [log] [blame]
package org.robolectric.integration_tests.libphonenumber;
import static com.google.common.truth.Truth.assertThat;
import com.google.i18n.phonenumbers.PhoneNumberUtil;
import com.google.i18n.phonenumbers.Phonenumber;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
@RunWith(RobolectricTestRunner.class)
@Config(sdk = Config.ALL_SDKS )
public class ClassloadingTest {
/**
* <a href="https://github.com/robolectric/robolectric/issues/2773">Issue</a>
*/
@Test
public void getResourceAsStream() throws Exception {
Phonenumber.PhoneNumber phoneNumber = new Phonenumber.PhoneNumber();
phoneNumber.setCountryCode(7);
phoneNumber.setNationalNumber(4956360636L);
String format = PhoneNumberUtil.getInstance().format(phoneNumber, PhoneNumberUtil.PhoneNumberFormat.INTERNATIONAL);
assertThat(format).isNotNull();
}
}