Package net.sf.iqser.plugin.facebook

Examples of net.sf.iqser.plugin.facebook.FacebookContentProvider


  String providerID = "net.sf.iqser.plugin.facebook";

  protected void setUp() throws Exception {
    PropertyConfigurator.configure("src/test/resources/log4j.properties");

    FacebookContentProvider fbcp = new FacebookContentProvider();
    mockFbClient = EasyMock.createMock(IFacebookRESTClient.class);

    fbcp.setId(providerID);
    // TODO set config params
    Properties initParams = new Properties();
    // initParams.put("KEY-ATTRIBUTES",[attr3][new_attr2]);
    // initParams.put("ATTRIBUTE-MAPPINGS",[attr1=new_attr1][attr2=new_attr2]);
    // initParams.put("CONTENT-TYPE-MAPPINGS",[Post=MyPost][User=People]);
    // initParams.put("TYPE_FILTER",[Post][User]);

    fbcp.setInitParams(initParams);
    fbcp.init();

    Configuration.configure(new File("iqser-config.xml"));

    TestServiceLocator sl = (TestServiceLocator) Configuration
        .getConfiguration().getServiceLocator();
View Full Code Here


  String providerID = "net.sf.iqser.plugin.facebook";

  protected void setUp() throws Exception {
    PropertyConfigurator.configure("src/test/resources/log4j.properties");

    FacebookContentProvider fbcp = new FacebookContentProvider();
    mockFbClient = EasyMock.createMock(IFacebookRESTClient.class);

    fbcp.setId(providerID);
    // TODO set config params
    Properties initParams = new Properties();
    // initParams.put("KEY-ATTRIBUTES",[attr3][new_attr2]);
    // initParams.put("ATTRIBUTE-MAPPINGS",[attr1=new_attr1][attr2=new_attr2]);
    // initParams.put("CONTENT-TYPE-MAPPINGS",[Post=MyPost][User=People]);
    // initParams.put("TYPE_FILTER",[Post][User]);

    fbcp.setInitParams(initParams);
    fbcp.init();

    Configuration.configure(new File("iqser-config.xml"));

    TestServiceLocator sl = (TestServiceLocator) Configuration
        .getConfiguration().getServiceLocator();
View Full Code Here

TOP

Related Classes of net.sf.iqser.plugin.facebook.FacebookContentProvider

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.