Author: vgritsenko
Date: Sun Sep 2 03:48:42 2007
New Revision: 571944
URL: http://svn.apache.org/viewvc?rev=571944&view=rev
Log:
avoid getData()
Modified:
xml/xindice/trunk/java/tests/src/org/apache/xindice/core/meta/inline/InlineHeaderBuilderTest.java
Modified: xml/xindice/trunk/java/tests/src/org/apache/xindice/core/meta/inline/InlineHeaderBuilderTest.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/tests/src/org/apache/xindice/core/meta/inline/InlineHeaderBuilderTest.java?rev=571944&r1=571943&r2=571944&view=diff
==============================================================================
--- xml/xindice/trunk/java/tests/src/org/apache/xindice/core/meta/inline/InlineHeaderBuilderTest.java (original)
+++ xml/xindice/trunk/java/tests/src/org/apache/xindice/core/meta/inline/InlineHeaderBuilderTest.java Sun Sep 2 03:48:42 2007
@@ -36,30 +36,29 @@
0x12, 0x11, 0x10, 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01};
Value value = InlineHeaderBuilder.createValue(12, metadata, data, 2, 7);
- byte[] valueBytes = value.getData();
-
+
/*
* byte 0 is the total header length
*/
- assertEquals(5, valueBytes[0]);
+ assertEquals(5, value.byteAt(0));
/*
* byte 1 is the metadata version
*/
- assertEquals(12, valueBytes[1]);
+ assertEquals(12, value.byteAt(1));
/*
* bytes 2-4 are metadata...
*/
for (int i = 0; i < metadata.length; ++i) {
- assertEquals("i=" + i, metadata[i], valueBytes[i + 2]);
+ assertEquals("i=" + i, metadata[i], value.byteAt(i + 2));
}
/*
* bytes 5-11 are record value data.
*/
for (int i = 0; i < 7; ++i) {
- assertEquals("i=" + i, data[i + 2], valueBytes[i + 5]);
+ assertEquals("i=" + i, data[i + 2], value.byteAt(i + 5));
}
}
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.