Package com.mobcom.test

Source Code of com.mobcom.test.APITest

package com.mobcom.test;

import com.mobcom.amazon.API;
import com.mobcom.db.DBStore;
import com.mobcom.db.MobcomAdapter;

public class APITest {

  /**
   * @param args
   */
  public static void main(String[] args) {
    API caller = new API();
    //System.out.println(caller.getProductById("B00008OE6I"));
    MobcomAdapter adapter = MobcomAdapter.newInstance();
    adapter.parseAsProducts(caller.getProducts(10));
    DBStore dbStore = DBStore.newInstance();
    System.out.println("No of products = " + dbStore.getNumberOfProducts());
    //parser.parse(caller.getProductById("B00008OE6I"));
  }
}
TOP

Related Classes of com.mobcom.test.APITest

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.