PageRenderTime 27ms CodeModel.GetById 19ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/facebook-java-api/src/test/java/com/google/code/facebookapi/Issue23MimeEncodingTest.java

http://facebook-java-api.googlecode.com/
Java | 20 lines | 14 code | 5 blank | 1 comment | 0 complexity | 38a51ea2d75d0a9d82599c39bfc0d227 MD5 | raw file
 1package com.google.code.facebookapi;
 2
 3import java.io.InputStream;
 4
 5import org.junit.Test;
 6import org.w3c.dom.Document;
 7
 8public class Issue23MimeEncodingTest {
 9
10	@Test
11	public void test_mimeEncodingUtf8() throws Exception {
12		IFacebookRestClient<Document> client = FacebookSessionTestUtils.getValidClient( FacebookXmlRestClient.class );
13		String fileName = "FaceBook-128x128.png";
14		InputStream fileStream = getClass().getClassLoader().getResourceAsStream( fileName );
15		String caption = "test_caption \u0103";
16		// String caption = "test_caption";
17		client.photos_upload( null, caption, null, fileName, fileStream );
18	}
19
20}