diff options
author | Tarun Gupta <tarun1995gupta@gmail.com> | 2015-06-30 13:30:18 (GMT) |
---|---|---|
committer | Kevin Smith <kevin.smith@isode.com> | 2015-07-07 07:27:46 (GMT) |
commit | 1f31d8301bbb89a61235d575ac3c5a2061df3a69 (patch) | |
tree | 46df5f1c716e74f73fd743291ff3bc7e3e4a3800 /test | |
parent | ae1f4d65b253fa1a263556be7419836a37683dd2 (diff) | |
download | stroke-1f31d8301bbb89a61235d575ac3c5a2061df3a69.zip stroke-1f31d8301bbb89a61235d575ac3c5a2061df3a69.tar.bz2 |
Update JingleFileTransferFileInfo in light of recent discussions related to Date.
Updates VCard Element, JingleFileTransferFileInfo to allow dates to be null, as a indicator for not a valid date time.
License:
This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.
Test-Information:
Corresponding tests changed, which passes.
Change-Id: I9c9b4a84b7bebc18e8ef8ba5050e45ac2f13aa65
Diffstat (limited to 'test')
3 files changed, 3 insertions, 3 deletions
diff --git a/test/com/isode/stroke/parser/payloadparsers/JingleFileTransferDescriptionParserTest.java b/test/com/isode/stroke/parser/payloadparsers/JingleFileTransferDescriptionParserTest.java index 765af5c..a7620c5 100644 --- a/test/com/isode/stroke/parser/payloadparsers/JingleFileTransferDescriptionParserTest.java +++ b/test/com/isode/stroke/parser/payloadparsers/JingleFileTransferDescriptionParserTest.java @@ -70,7 +70,7 @@ public class JingleFileTransferDescriptionParserTest { assertEquals("It is good.", fileInfo.getDescription()); assertEquals("MediaAAC", fileInfo.getMediaType()); assertEquals(0L, fileInfo.getSize()); - assertEquals(DateTime.dateToString(new Date(0L)), DateTime.dateToString(fileInfo.getDate())); + assertNull(fileInfo.getDate()); assertEquals(false, fileInfo.getSupportsRangeRequests()); assertEquals(0L, fileInfo.getRangeOffset()); assertEquals(new ByteArray(), fileInfo.getHash("MD5")); diff --git a/test/com/isode/stroke/parser/payloadparsers/JingleFileTransferFileInfoParserTest.java b/test/com/isode/stroke/parser/payloadparsers/JingleFileTransferFileInfoParserTest.java index 5225a6d..06f2253 100644 --- a/test/com/isode/stroke/parser/payloadparsers/JingleFileTransferFileInfoParserTest.java +++ b/test/com/isode/stroke/parser/payloadparsers/JingleFileTransferFileInfoParserTest.java @@ -56,7 +56,7 @@ public class JingleFileTransferFileInfoParserTest { assertEquals("It is good.", fileInfo.getDescription()); assertEquals("MediaAAC", fileInfo.getMediaType()); assertEquals(0L, fileInfo.getSize()); - assertEquals(DateTime.dateToString(new Date(0L)), DateTime.dateToString(fileInfo.getDate())); + assertNull(fileInfo.getDate()); assertEquals(false, fileInfo.getSupportsRangeRequests()); assertEquals(0L, fileInfo.getRangeOffset()); assertEquals(new ByteArray(), fileInfo.getHash("MD5")); diff --git a/test/com/isode/stroke/parser/payloadparsers/JingleFileTransferHashParserTest.java b/test/com/isode/stroke/parser/payloadparsers/JingleFileTransferHashParserTest.java index 8dc8a6c..8999c24 100644 --- a/test/com/isode/stroke/parser/payloadparsers/JingleFileTransferHashParserTest.java +++ b/test/com/isode/stroke/parser/payloadparsers/JingleFileTransferHashParserTest.java @@ -70,7 +70,7 @@ public class JingleFileTransferHashParserTest { assertEquals("It is good.", fileInfo.getDescription()); assertEquals("MediaAAC", fileInfo.getMediaType()); assertEquals(0L, fileInfo.getSize()); - assertEquals(DateTime.dateToString(new Date(0L)), DateTime.dateToString(fileInfo.getDate())); + assertNull(fileInfo.getDate()); assertEquals(false, fileInfo.getSupportsRangeRequests()); assertEquals(0L, fileInfo.getRangeOffset()); assertEquals(new ByteArray(), fileInfo.getHash("MD5")); |