Package net.buffalo.protocal.converters.collection

Examples of net.buffalo.protocal.converters.collection.ArrayConverter


    LongConverter longConverter = new LongConverter();
    StringConverter stringConverter = new StringConverter();
    DateConverter dateConverter = new DateConverter();
    CollectionConverter collectionConverter = new CollectionConverter();
    MapConverter mapConverter = new MapConverter();
    ArrayConverter arrayConverter = new ArrayConverter();
    SqlDateConverter sqlDateConverter = new SqlDateConverter();
    BigNumberConverter bigNumberConverter = new BigNumberConverter();
    ExceptionConverter exceptionConverter = new ExceptionConverter();
    ObjectConverter objectConverter = new ObjectConverter();
View Full Code Here


  protected void setUp() throws Exception {
    super.setUp();
    stringWriter = new StringWriter();
    streamWriter = new FastStreamWriter(stringWriter);
    context = new DefaultMarshallingContext(new DefaultConverterLookup(), streamWriter);
    as = new ArrayConverter();
  }
View Full Code Here

 
  public void testList() throws Exception {
    long[] lvalues = new long[] { 1001 };
    StringWriter stringWriter2 = new StringWriter();
    FastStreamWriter SimpleStreamWriter = new FastStreamWriter(stringWriter2);
    new ArrayConverter().marshal(lvalues,
        new DefaultMarshallingContext(new DefaultConverterLookup(), SimpleStreamWriter),
        SimpleStreamWriter);
    assertEquals("<list><type>[long</type><length>1</length><long>1001</long></list>",
        stringWriter2.getBuffer().toString());
  }
View Full Code Here

TOP

Related Classes of net.buffalo.protocal.converters.collection.ArrayConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.