package facebook4j.json;

/**
 * Created with IntelliJ IDEA.
 * User: ryu
 * Date: 2013/05/18
 * Time: 0:13
 * To change this template use File | Settings | File Templates.
 */
public class DataObjectFactoryTest {
}

@@ -1,216 +1,2102 @@
-package facebook4j.json;%0A%0A/**%0A * Created
+/*%0A * Copyright 2012 Ryuji Yamashita%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in
  w
+r
 it
-h IntelliJ IDEA.%0A * User: ryu%0A * Date: 2013/05/18%0A * Time: 0:13%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic class DataObjectFactoryTest %7B
+ing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage facebook4j.json;%0A%0Aimport facebook4j.FacebookFactory;%0Aimport facebook4j.FacebookTestBase;%0Aimport facebook4j.Post;%0Aimport facebook4j.ResponseList;%0Aimport facebook4j.auth.AccessToken;%0Aimport facebook4j.auth.OAuthAuthorization;%0Aimport facebook4j.conf.Configuration;%0Aimport facebook4j.conf.ConfigurationBuilder;%0Aimport org.hamcrest.CoreMatchers;%0Aimport org.junit.*;%0A%0Aimport static org.hamcrest.CoreMatchers.*;%0Aimport static org.junit.Assert.*;%0A%0Apublic class DataObjectFactoryTest extends FacebookTestBase %7B%0A    @BeforeClass%0A    public static void setUpBeforeClass() throws Exception %7B%0A    %7D%0A%0A    @AfterClass%0A    public static void tearDownAfterClass() throws Exception %7B%0A    %7D%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        Configuration conf = new ConfigurationBuilder().setOAuthAppId(appId).setOAuthAppSecret(appSecret)%0A                                                       .setJSONStoreEnabled(true)%0A                                                       .build();%0A        facebook1 = new FacebookFactory().getInstance(new OAuthAuthorization(conf));%0A        facebook1.setOAuthAccessToken(new AccessToken(id1.getAccessToken(), null));%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A    %7D%0A%0A    @Test%0A    public void getRawJSON() throws Exception %7B%0A        ResponseList%3CPost%3E posts = facebook1.getPosts();%0A        String rawJSON = DataObjectFactory.getRawJSON(posts);%0A        assertThat(rawJSON, is(notNullValue()));%0A        System.out.println(rawJSON);%0A    %7D%0A
 %0A%7D%0A

Test DataObjectFactory