rename package

This commit is contained in:
kimchy 2010-09-30 08:17:33 +02:00
parent 64662d8449
commit 3b02bd3952

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.common.xcontent.xson;
package org.elasticsearch.common.xcontent.smile;
import org.elasticsearch.common.io.FastByteArrayOutputStream;
import org.elasticsearch.common.xcontent.XContentFactory;
@ -36,6 +36,15 @@ import static org.hamcrest.Matchers.*;
*/
public class JsonVsSmileTests {
// @Test public void testBinarySmileField() throws Exception {
// JsonGenerator gen = new SmileFactory().createJsonGenerator(new ByteArrayOutputStream());
//// JsonGenerator gen = new JsonFactory().createJsonGenerator(new ByteArrayOutputStream(), JsonEncoding.UTF8);
// gen.writeStartObject();
// gen.writeFieldName("field1");
// gen.writeBinary(new byte[]{1, 2, 3});
// gen.writeEndObject();
// }
@Test public void compareParsingTokens() throws IOException {
FastByteArrayOutputStream xsonOs = new FastByteArrayOutputStream();
XContentGenerator xsonGen = XContentFactory.xContent(XContentType.SMILE).createGenerator(xsonOs);