Package org.jugile.daims

Source Code of org.jugile.daims.ParseTest

package org.jugile.daims;

import java.util.ArrayList;
import java.util.List;

import org.jugile.proto2.domain.Person;
import org.jugile.util.JugileTestCase;

public class ParseTest extends JugileTestCase {

  public void testParse() {
    BoMap<Person> bm = new BoMap<Person>(Person.class,null);
    List<String> headers = new ArrayList<String>();
    List<String> cols = new ArrayList<String>();
    headers.add("org.jugile.proto2.domain.Person");
    cols.add("1000");
    headers.add("v");
    cols.add("2");
    headers.add("ts");
    cols.add("-");
    headers.add("name");
    cols.add("Jukka");
    headers.add("ts");
    cols.add("19750621-000000.100");
    headers.add("age");
    cols.add("44");
    bm.parse(headers, cols);
   
    Person p = bm.getOriginal(1000);
    assertNotNull(p);
    print("p: " + p);
  }
 
}
TOP

Related Classes of org.jugile.daims.ParseTest

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.