/facebook-java-api/src/test/java/com/google/code/facebookapi/Issue188TemplateBundleShortStoryTest.java
http://facebook-java-api.googlecode.com/ · Java · 38 lines · 28 code · 9 blank · 1 comment · 0 complexity · e5f3cc39ad61f7f1ca26ce83583973d5 MD5 · raw file
- package com.google.code.facebookapi;
- import static org.junit.Assert.assertNotNull;
- import static org.junit.Assert.assertTrue;
- import java.util.ArrayList;
- import java.util.List;
- import org.junit.Ignore;
- import org.junit.Test;
- @Ignore
- @Deprecated
- public class Issue188TemplateBundleShortStoryTest {
- @Test
- // Remove this line, we want this test to work!
- public void testTemplateBundleWithShortStory() throws Exception {
- FacebookJaxbRestClient client = FacebookSessionTestUtils.getValidClient( FacebookJaxbRestClient.class );
- List<String> oneLineTemplates = new ArrayList<String>();
- oneLineTemplates.add( "{*actor*} is advancing through {*appName*}" );
- List<BundleStoryTemplate> shortStoryTemplates = new ArrayList<BundleStoryTemplate>();
- BundleStoryTemplate shortStory = new BundleStoryTemplate( "{*actor*} is advancing through {*appName*}", "" );
- shortStoryTemplates.add( shortStory );
- List<BundleActionLink> links = new ArrayList<BundleActionLink>();
- BundleActionLink link = new BundleActionLink();
- link.setText( "Play {*appName*} Now!" );
- link.setHref( "http://apps.facebook.com/mindgames/play.htm" );
- links.add( link );
- Long templateID = client.feed_registerTemplateBundle( oneLineTemplates, shortStoryTemplates, null, links );
- assertNotNull( templateID );
- assertTrue( templateID > 0 );
- }
- }