commit | c7c3615b34a7afdade91bad3178d1580bd45dc47 | [log] [tgz] |
---|---|---|
author | Amit Mahajan <amitmahajan@google.com> | Thu Aug 11 18:17:46 2016 -0700 |
committer | Amit Mahajan <amitmahajan@google.com> | Fri Aug 12 18:10:36 2016 +0000 |
tree | 02008b952189e8b55f0433123b69e184be92e227 | |
parent | 34d5bfc81470b14c8c8c862bd1ae14ed6c5804c4 [diff] |
Fix testCreateFromPdu() to test for the correct behavior for null input. For null pdu, SmsMessage returned by createFromPdu() should be null. Bug: 30120211 Change-Id: Ifc23c489e5f6a9a0699ed5c9250eb26e20657c93
diff --git a/tests/tests/telephony/src/android/telephony/cts/SmsMessageTest.java b/tests/tests/telephony/src/android/telephony/cts/SmsMessageTest.java index 2406ad8..e247775 100644 --- a/tests/tests/telephony/src/android/telephony/cts/SmsMessageTest.java +++ b/tests/tests/telephony/src/android/telephony/cts/SmsMessageTest.java
@@ -114,7 +114,7 @@ // Test create from null Pdu sms = SmsMessage.createFromPdu(null, SmsMessage.FORMAT_3GPP); - assertNotNull(sms); + assertNull(sms); // Test create from long Pdu pdu = "07912160130310F2040B915121927786F300036060924180008A0DA"