Package org.bifrost.xmlio.test.helpers

Examples of org.bifrost.xmlio.test.helpers.TestHelperTypes


   */
  public void testAllTypes()
  {
    CharArrayWriter output = new CharArrayWriter();
    assertNotNull(output);
    TestHelperTypes types = new TestHelperTypes();
    assertNotNull(types);
    types.setPint(1);
    types.setInteger(new Integer(2));
    types.setString("mdk");
    types.setPlong(3l);
    types.setOlong(new Long(4));
    types.setPbool(true);
    types.setObool(new Boolean(true));
    types.setPfloat(5.2f);
    types.setOfloat(new Float(6.2));
    types.setPshort((short)7);
    types.setOshort(new Short((short)8));
    types.setPbyte((byte)9);
    types.setObyte(new Byte((byte)10));
    types.setPchar('a');
    types.setOchar(new Character('b'));
    types.setPdouble(11.2d);
    types.setOdouble(new Double(12.2));

    Calendar cal = new GregorianCalendar();
    cal.set(Calendar.YEAR, 2003);
    cal.set(Calendar.MONTH, 9);
    cal.set(Calendar.DAY_OF_MONTH, 20);
    cal.set(Calendar.HOUR_OF_DAY, 10);
    cal.set(Calendar.MINUTE, 32);
    cal.set(Calendar.SECOND, 53);

    types.setDate(cal.getTime());
   
    Diff myDiff = null;
    try
    {
      XmlWriter xmlWriter = new XmlWriter(output);
View Full Code Here

TOP

Related Classes of org.bifrost.xmlio.test.helpers.TestHelperTypes

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.