You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2013/02/25 23:29:27 UTC
svn commit: r1449943 -
/qpid/proton/trunk/tests/java/org/apache/qpid/proton/InteropTest.java
Author: aconway
Date: Mon Feb 25 22:29:27 2013
New Revision: 1449943
URL: http://svn.apache.org/r1449943
Log:
PROTON-232: described arrays seem to force the descriptor to be of the same type as the array
Fixed bug in code.c pn_data_encode_node: was always using the parent->type
for everything inside an array, including the descriptor.
Modified:
qpid/proton/trunk/tests/java/org/apache/qpid/proton/InteropTest.java
Modified: qpid/proton/trunk/tests/java/org/apache/qpid/proton/InteropTest.java
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/tests/java/org/apache/qpid/proton/InteropTest.java?rev=1449943&r1=1449942&r2=1449943&view=diff
==============================================================================
--- qpid/proton/trunk/tests/java/org/apache/qpid/proton/InteropTest.java (original)
+++ qpid/proton/trunk/tests/java/org/apache/qpid/proton/InteropTest.java Mon Feb 25 22:29:27 2013
@@ -130,15 +130,12 @@ public class InteropTest {
assertEquals(13, dt.getDescribed());
}
-
- // FIXME aconway 2013-02-19:
- @Ignore("PROTON-240: Incorrect encoding of described arrays.")
@Test
- public void skip_testDescribedArray() throws IOException {
+ public void testDescribedArray() throws IOException {
TestDecoder d = createDecoder(getBytes("described_array"));
DescribedType a[] = (DescribedType[])(d.readArray());
for (int i = 0; i < 10; ++i) {
- assertEquals("int-array", a[i].getDescriptor());
+ assertEquals(Symbol.valueOf("int-array"), a[i].getDescriptor());
assertEquals(i, a[i].getDescribed());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org