Package com.google.code.facebookapi

Source Code of com.google.code.facebookapi.Issue147FQL_JAXBTest

package com.google.code.facebookapi;

import static org.junit.Assert.assertEquals;

import java.util.List;

import org.junit.Test;
import org.w3c.dom.Element;

import com.google.code.facebookapi.schema.FqlQueryResponse;

public class Issue147FQL_JAXBTest {

  @Test
  public void testFQLJAXB() throws Exception {
    FacebookJaxbRestClient client = FacebookSessionTestUtils.getValidClient( FacebookJaxbRestClient.class );
    FqlQueryResponse fqr = (FqlQueryResponse) client.fql_query( "select first_name, last_name from user where uid = " + client.users_getLoggedInUser() );
    List<Object> results = fqr.getResults();
    assertEquals( 1, results.size() );
    Element result0 = (Element) results.get( 0 );
    XMLTestUtils.debug( "Issue147FQL_JAXBTest: ", result0 );
  }

}
TOP

Related Classes of com.google.code.facebookapi.Issue147FQL_JAXBTest

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.