aboutsummaryrefslogtreecommitdiff
path: root/tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/AtVersionListTest.java
diff options
context:
space:
mode:
authorCody Kesting <ckesting@google.com>2019-08-15 15:53:47 -0700
committerCody Kesting <ckesting@google.com>2019-08-20 11:07:04 -0700
commit12d342419413ec1ee3128e7ee74307d34d367083 (patch)
tree02378691408803f73755fb016aa8f76a2d4a52e8 /tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/AtVersionListTest.java
parentb5f61343ee995efad10c95a3dbe5555b1ebaeae0 (diff)
downloadike-12d342419413ec1ee3128e7ee74307d34d367083.tar.gz
Use the shared Attribute Factory in testing.
Many of the EAP-SIM/EAP-AKA shared attributes already have testing. However, they are decoded in testing using the EapSimAttributeFactory. These are changed to instead use the EapSimAkaAttributeFactory. Bug: 139381128 Test: atest FrameworksIkeTests Change-Id: I20811a6449d0a4b58cb16828a770a6bfa2c7360c
Diffstat (limited to 'tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/AtVersionListTest.java')
-rw-r--r--tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/AtVersionListTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/AtVersionListTest.java b/tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/AtVersionListTest.java
index 697c49b4..69cda932 100644
--- a/tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/AtVersionListTest.java
+++ b/tests/iketests/src/java/com/android/ike/eap/message/simaka/attributes/AtVersionListTest.java
@@ -54,7 +54,7 @@ public class AtVersionListTest {
@Test
public void testDecode() throws Exception {
ByteBuffer input = ByteBuffer.wrap(AT_VERSION_LIST);
- EapSimAkaAttribute result = mEapSimAttributeFactory.getEapSimAttribute(input);
+ EapSimAkaAttribute result = mEapSimAttributeFactory.getAttribute(input);
assertFalse(input.hasRemaining());
assertTrue(result instanceof AtVersionList);
@@ -68,7 +68,7 @@ public class AtVersionListTest {
public void testDecodeInvalidActualLength() throws Exception {
ByteBuffer input = ByteBuffer.wrap(AT_VERSION_LIST_INVALID_LENGTH);
try {
- mEapSimAttributeFactory.getEapSimAttribute(input);
+ mEapSimAttributeFactory.getAttribute(input);
fail("Expected EapSimAkaInvalidAttributeException for invalid actual list length");
} catch (EapSimAkaInvalidAttributeException expected) {
}