Search in sources :

Example 1 with ResultUpdateProfile

use of com.fanap.podchat.chat.user.profile.ResultUpdateProfile in project pod-chat-android-sdk by FanapSoft.

the class ChatTest method updateUserProfile.

// @Test
// @LargeTest
// public void updateUserProfile() {
// 
// 
// sleep(10000);
// 
// RequestUpdateProfile request = new RequestUpdateProfile
// .Builder("عیب رندان مکن ای زاهد پاکیزه سرشت")
// .build();
// 
// chat.updateChatProfile(request);
// 
// sleep(1000);
// 
// Mockito.verify(chatListeners, Mockito.atLeastOnce()).onChatProfileUpdated(Mockito.any());
// 
// 
// Assert.assertTrue(true);
// 
// 
// }
@Test
@LargeTest
public void updateUserProfile() {
    String bio = "عیب رندان مکن ای زاهد پاکیزه سرشت";
    RequestUpdateProfile request = new RequestUpdateProfile.Builder(bio).build();
    // 
    // presenter.updateChatProfile(request);
    // 
    // sleep(1000);
    chat.updateChatProfile(request);
    sleep(500);
    ChatResponse<ResultUpdateProfile> response = new ChatResponse<>();
    ResultUpdateProfile result = new ResultUpdateProfile();
    result.setBio(bio);
    response.setResult(result);
    Mockito.verify(view, Mockito.atLeastOnce()).onChatProfileUpdated(Mockito.any());
}
Also used : RequestUpdateProfile(com.fanap.podchat.chat.user.profile.RequestUpdateProfile) ChatResponse(com.fanap.podchat.model.ChatResponse) ResultUpdateProfile(com.fanap.podchat.chat.user.profile.ResultUpdateProfile) FlakyTest(android.support.test.filters.FlakyTest) MediumTest(android.support.test.filters.MediumTest) Test(org.junit.Test) LargeTest(android.support.test.filters.LargeTest) LargeTest(android.support.test.filters.LargeTest)

Example 2 with ResultUpdateProfile

use of com.fanap.podchat.chat.user.profile.ResultUpdateProfile in project pod-chat-android-sdk by FanapSoft.

the class ChatTestSandbox method updateUserProfile.

// @Test
// @LargeTest
// public void updateUserProfile() {
// 
// 
// sleep(10000);
// 
// RequestUpdateProfile request = new RequestUpdateProfile
// .Builder("عیب رندان مکن ای زاهد پاکیزه سرشت")
// .build();
// 
// chat.updateChatProfile(request);
// 
// sleep(1000);
// 
// Mockito.verify(chatListeners, Mockito.atLeastOnce()).onChatProfileUpdated(Mockito.any());
// 
// 
// Assert.assertTrue(true);
// 
// 
// }
@Test
@LargeTest
public void updateUserProfile() {
    String bio = "عیب رندان مکن ای زاهد پاکیزه سرشت";
    RequestUpdateProfile request = new RequestUpdateProfile.Builder(bio).build();
    // 
    // presenter.updateChatProfile(request);
    // 
    // sleep(1000);
    chat.updateChatProfile(request);
    sleep(500);
    ChatResponse<ResultUpdateProfile> response = new ChatResponse<>();
    ResultUpdateProfile result = new ResultUpdateProfile();
    result.setBio(bio);
    response.setResult(result);
    Mockito.verify(view, Mockito.atLeastOnce()).onChatProfileUpdated(Mockito.any());
}
Also used : RequestUpdateProfile(com.fanap.podchat.chat.user.profile.RequestUpdateProfile) ChatResponse(com.fanap.podchat.model.ChatResponse) ResultUpdateProfile(com.fanap.podchat.chat.user.profile.ResultUpdateProfile) FlakyTest(android.support.test.filters.FlakyTest) MediumTest(android.support.test.filters.MediumTest) Test(org.junit.Test) LargeTest(android.support.test.filters.LargeTest) LargeTest(android.support.test.filters.LargeTest)

Example 3 with ResultUpdateProfile

use of com.fanap.podchat.chat.user.profile.ResultUpdateProfile in project pod-chat-android-sdk by FanapSoft.

the class ChatTestIntegration method updateUserProfile.

// @Test
// @LargeTest
// public void updateUserProfile() {
// 
// 
// sleep(10000);
// 
// RequestUpdateProfile request = new RequestUpdateProfile
// .Builder("عیب رندان مکن ای زاهد پاکیزه سرشت")
// .build();
// 
// chat.updateChatProfile(request);
// 
// sleep(1000);
// 
// Mockito.verify(chatListeners, Mockito.atLeastOnce()).onChatProfileUpdated(Mockito.any());
// 
// 
// Assert.assertTrue(true);
// 
// 
// }
@Test
@LargeTest
public void updateUserProfile() {
    String bio = "عیب رندان مکن ای زاهد پاکیزه سرشت";
    RequestUpdateProfile request = new RequestUpdateProfile.Builder(bio).build();
    // 
    // presenter.updateChatProfile(request);
    // 
    // sleep(1000);
    chat.updateChatProfile(request);
    sleep(500);
    ChatResponse<ResultUpdateProfile> response = new ChatResponse<>();
    ResultUpdateProfile result = new ResultUpdateProfile();
    result.setBio(bio);
    response.setResult(result);
    Mockito.verify(view, Mockito.atLeastOnce()).onChatProfileUpdated(Mockito.any());
}
Also used : RequestUpdateProfile(com.fanap.podchat.chat.user.profile.RequestUpdateProfile) ChatResponse(com.fanap.podchat.model.ChatResponse) ResultUpdateProfile(com.fanap.podchat.chat.user.profile.ResultUpdateProfile) FlakyTest(android.support.test.filters.FlakyTest) MediumTest(android.support.test.filters.MediumTest) Test(org.junit.Test) LargeTest(android.support.test.filters.LargeTest) LargeTest(android.support.test.filters.LargeTest)

Aggregations

FlakyTest (android.support.test.filters.FlakyTest)3 LargeTest (android.support.test.filters.LargeTest)3 MediumTest (android.support.test.filters.MediumTest)3 RequestUpdateProfile (com.fanap.podchat.chat.user.profile.RequestUpdateProfile)3 ResultUpdateProfile (com.fanap.podchat.chat.user.profile.ResultUpdateProfile)3 ChatResponse (com.fanap.podchat.model.ChatResponse)3 Test (org.junit.Test)3