Package com.huangzhimin.contacts

Examples of com.huangzhimin.contacts.ContactsImporter


    }
    }

    @Test
    public void yahoocomcn() {
    ContactsImporter importer = new YahooImporter(props.getProperty("yahoocomcn.username"), props.getProperty("yahoocomcn.password"));
    try {
      List<Contact> contacts = importer.getContacts();
      assertTrue("yahoocomcn contacts are empty", contacts.size() > 0);
    } catch (ContactsException e) {
      e.printStackTrace();
      fail("yahoocomcn contacts get failed. ");
    }
View Full Code Here


    }
    }

    @Test
    public void yeah() {
    ContactsImporter importer = new YeahImporter(props.getProperty("yeah.username"), props.getProperty("yeah.password"));
    try {
      List<Contact> contacts = importer.getContacts();
      assertTrue("yeah contacts are empty", contacts.size() > 0);
    } catch (ContactsException e) {
      e.printStackTrace();
      fail("yeah contacts get failed. ");
    }
View Full Code Here

    }
    }

    @Test
    public void oneeightnine() {
    ContactsImporter importer = new OneEightNineImporter(props.getProperty("oneeightnine.username"), props.getProperty("oneeightnine.password"));
    try {
      List<Contact> contacts = importer.getContacts();
      assertTrue("189 contacts are empty", contacts.size() > 0);
    } catch (ContactsException e) {
      e.printStackTrace();
      fail("189 contacts get failed. ");
    }
View Full Code Here

    }
    }

    @Test
    public void onethreenine() {
    ContactsImporter importer = new OneThreeNineImporter(props.getProperty("onethreenine.username"), props.getProperty("onethreenine.password"));
    try {
      List<Contact> contacts = importer.getContacts();
      assertTrue("139 contacts are empty", contacts.size() > 0);
    } catch (ContactsException e) {
      e.printStackTrace();
      fail("139 contacts get failed. ");
    }
View Full Code Here

    public void tearDown() {
    }

    @Test
    public void msn() {
    ContactsImporter importer = new MSNImporter(props.getProperty("username"), props.getProperty("password"));
    try {
      List<Contact> contacts = importer.getContacts();
      assertTrue("msn contacts are empty", contacts.size() > 0);
    } catch (ContactsException e) {
            e.printStackTrace();
      fail("msn contacts get failed. ");
    }
View Full Code Here

TOP

Related Classes of com.huangzhimin.contacts.ContactsImporter

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.