diff options
| author | Robert Godfrey <rgodfrey@apache.org> | 2013-09-27 13:54:30 +0000 |
|---|---|---|
| committer | Robert Godfrey <rgodfrey@apache.org> | 2013-09-27 13:54:30 +0000 |
| commit | 4e3d53de805640b8b8868d9e442c7d7f642831fb (patch) | |
| tree | e47542fbf6f4d8955dc69561fc8eee059c0a820d /qpid/java/common/src/test | |
| parent | c54daace1322bcb5428467c590645baa15da6b50 (diff) | |
| download | qpid-python-4e3d53de805640b8b8868d9e442c7d7f642831fb.tar.gz | |
QPID-5184 : Setting message expiration to 0 should lead to the header property being unset - not being set as the empty string
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1526904 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common/src/test')
| -rw-r--r-- | qpid/java/common/src/test/java/org/apache/qpid/framing/BasicContentHeaderPropertiesTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/java/common/src/test/java/org/apache/qpid/framing/BasicContentHeaderPropertiesTest.java b/qpid/java/common/src/test/java/org/apache/qpid/framing/BasicContentHeaderPropertiesTest.java index 1a2c5283b0..4902e8ad64 100644 --- a/qpid/java/common/src/test/java/org/apache/qpid/framing/BasicContentHeaderPropertiesTest.java +++ b/qpid/java/common/src/test/java/org/apache/qpid/framing/BasicContentHeaderPropertiesTest.java @@ -144,6 +144,9 @@ public class BasicContentHeaderPropertiesTest extends TestCase long expiration = 999999999; _testProperties.setExpiration(expiration); assertEquals(expiration, _testProperties.getExpiration()); + expiration = 0l; + _testProperties.setExpiration(expiration); + assertEquals(expiration, _testProperties.getExpiration()); } public void testSetGetMessageId() |
