开发者

Grails integration testing facebook graph plugin

开发者 https://www.devze.com 2023-03-22 06:48 出处:网络
I\'m using http://www.grails.org/plugin/facebook-graph to get user profile, but I\'m stuck to 开发者_如何学编程test from controllers. Anybody could advice me how to mock or test facebook session in in

I'm using http://www.grails.org/plugin/facebook-graph to get user profile, but I'm stuck to 开发者_如何学编程test from controllers. Anybody could advice me how to mock or test facebook session in integration testing?


how about start testing some post in your wall, using the follow code:

facebookGraphService.publishWall(message:"The message",
           link:"http://www.example.com/article.html",
           name:"The name of the link")
0

精彩评论

暂无评论...
验证码 换一张
取 消