Search in sources :

Example 1 with Parameter

use of com.restfb.Parameter in project data-transfer-project by google.

the class FacebookVideosImporterTest method testImportSingleVideo.

@Test
public void testImportSingleVideo() {
    importer.importSingleVideo(client, new VideoModel("title", VIDEO_URL, VIDEO_DESCRIPTION, "video/mp4", "videoId", null, false));
    Parameter[] params = { Parameter.with("file_url", VIDEO_URL), Parameter.with("description", VIDEO_DESCRIPTION) };
    verify(client).publish("me/videos", GraphResponse.class, params);
}
Also used : Parameter(com.restfb.Parameter) VideoModel(org.datatransferproject.types.common.models.videos.VideoModel) Test(org.junit.Test)

Aggregations

Parameter (com.restfb.Parameter)1 VideoModel (org.datatransferproject.types.common.models.videos.VideoModel)1 Test (org.junit.Test)1