diff options
Diffstat (limited to 'tests/telephonytests/src/com/android/internal/telephony/CellIdentityLteTest.java')
-rw-r--r-- | tests/telephonytests/src/com/android/internal/telephony/CellIdentityLteTest.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/telephonytests/src/com/android/internal/telephony/CellIdentityLteTest.java b/tests/telephonytests/src/com/android/internal/telephony/CellIdentityLteTest.java index 77bea60049..d3b3e59720 100644 --- a/tests/telephonytests/src/com/android/internal/telephony/CellIdentityLteTest.java +++ b/tests/telephonytests/src/com/android/internal/telephony/CellIdentityLteTest.java @@ -22,7 +22,10 @@ import android.telephony.CellInfo; import android.test.AndroidTestCase; import android.test.suitebuilder.annotation.SmallTest; +import java.util.ArrayList; +import java.util.Arrays; import java.util.Collections; +import java.util.stream.Collectors; /** Unit tests for {@link CellIdentityLte}. */ @@ -253,4 +256,15 @@ public class CellIdentityLteTest extends AndroidTestCase { CellIdentityLte newCi = CellIdentityLte.CREATOR.createFromParcel(p); assertEquals(ci, newCi); } + + @SmallTest + public void testBands() { + android.hardware.radio.V1_5.CellIdentityLte cid = + new android.hardware.radio.V1_5.CellIdentityLte(); + cid.bands = Arrays.stream(BANDS).boxed().collect(Collectors.toCollection(ArrayList::new)); + + CellIdentityLte cellIdentityLte = new CellIdentityLte(cid); + assertTrue(Arrays.equals(cellIdentityLte.getBands(), BANDS)); + + } } |