Package net.buffalo.protocal.converters.basic

Examples of net.buffalo.protocal.converters.basic.StringConverter.unmarshal()


    }
  }
 
  public void testShouldGetString() throws Exception {
    StringConverter sd = new StringConverter();
    String s = (String)sd.unmarshal(TestUtils.createStreamReader("<string>hello, world</string>"), null);
    assertEquals("hello, world", s);
  }
 
  public void testShouldReturnTheOrginalStringFromXmlEscaped() throws Exception {
    StringConverter sd = new StringConverter();
View Full Code Here


    assertEquals("hello, world", s);
  }
 
  public void testShouldReturnTheOrginalStringFromXmlEscaped() throws Exception {
    StringConverter sd = new StringConverter();
    String s = (String)sd.unmarshal(TestUtils.createStreamReader("<string>&lt;&gt;&amp;HH</string>"), null);
    assertEquals("<>&HH", s);
  }
 
  public void testCouldGetDate() throws Exception {
    DateConverter dd = new DateConverter();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.