Package com.renren.api.client.services

Source Code of com.renren.api.client.services.NotificationsServiceTest

package com.renren.api.client.services;

import junit.framework.Assert;

import org.junit.Test;

import com.renren.api.client.AbstractServiceTest;
import com.renren.api.client.param.impl.AccessToken;

/**
* @author 李勇(yong.li@opi-corp.com) 2011-2-21
*/
public class NotificationsServiceTest extends AbstractServiceTest {

    @Test
    public void testSend() {
        String toIds = "432801017";
        String notification = "hello,<xn:name uid=\"258707480\" linked=\"true\"/>";
        int i = this.getRenrenApiClient().getNotificationsService().send(toIds, notification,new AccessToken(this.getAccessToken()));
        Assert.assertEquals(1, i);
    }
}
TOP

Related Classes of com.renren.api.client.services.NotificationsServiceTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.