Package org.jtester.core.IJTester

Examples of org.jtester.core.IJTester.DataMap


  public void data(DataMap data) {
    this.datas.add(data);
  }

  public void data(String json) {
    DataMap data = JSON.toObject(json, DataMap.class);
    this.datas.add(data);
  }
View Full Code Here


   * @return
   */
  public static List<DataMap> parseMapList(int count, DataMap datas) {
    List<DataMap> list = new ArrayList<DataMap>();
    for (int index = 0; index < count; index++) {
      DataMap data = new DataMap();
      for (String key : datas.keySet()) {
        Object dataGenerator = datas.get(key);
        Object value = getObjectFromDataGenerator(data, dataGenerator, index);
        data.put(key, value);
      }
      list.add(data);
    }
    return list;
  }
View Full Code Here

  }

  public ITableOp insert(String json, String... more) {
    IN_DB_OPERATOR.set(true);
    try {
      DataMap map = JSON.toObject(json, DataMap.class);
      InsertOp.insert(table, map);
      for (String item : more) {
        map = JSON.toObject(item, DataMap.class);
        InsertOp.insert(table, map);
      }
View Full Code Here

TOP

Related Classes of org.jtester.core.IJTester.DataMap

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.