Package com.huangzhimin.contacts

Examples of com.huangzhimin.contacts.ContactsImporter


    public void tearDown() throws Exception {
    }

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


    }
    }

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

    }
    }

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

    }
    }

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

    }
    }

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

    }
    }

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

    }
    }

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

    }
    }

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

    }
    }

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

    }
    }

    @Test
    public void yahoocn() {
    ContactsImporter importer = new YahooImporter(props.getProperty("yahoocn.username"), props.getProperty("yahoocn.password"));
    try {
      List<Contact> contacts = importer.getContacts();
      assertTrue("yahoocn contacts are empty", contacts.size() > 0);
    } catch (ContactsException e) {
      e.printStackTrace();
      fail("yahoocn 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.