Search in sources :

Example 1 with RequestPinMessage

use of com.fanap.podchat.chat.pin.pin_message.model.RequestPinMessage in project pod-chat-android-sdk by FanapSoft.

the class ChatActivity method unpinMessage.

private void unpinMessage() {
    RequestPinMessage requestPinMessage = new RequestPinMessage.Builder().setMessageId(TEST_THREAD_ID).build();
    presenter.unPinMessage(requestPinMessage);
}
Also used : RequestPinMessage(com.fanap.podchat.chat.pin.pin_message.model.RequestPinMessage) GsonBuilder(com.google.gson.GsonBuilder)

Example 2 with RequestPinMessage

use of com.fanap.podchat.chat.pin.pin_message.model.RequestPinMessage in project pod-chat-android-sdk by FanapSoft.

the class ChatTestSandbox method pinMessage.

@Test
@MediumTest
public void pinMessage() {
    RequestPinMessage requestPinMessage = new RequestPinMessage.Builder().setMessageId(76306).setNotifyAll(true).build();
    presenter.pinMessage(requestPinMessage);
    sleep(1000);
    Mockito.verify(view, Mockito.times(1)).onPinMessage(Mockito.any());
}
Also used : RequestPinMessage(com.fanap.podchat.chat.pin.pin_message.model.RequestPinMessage) FlakyTest(android.support.test.filters.FlakyTest) MediumTest(android.support.test.filters.MediumTest) Test(org.junit.Test) LargeTest(android.support.test.filters.LargeTest) MediumTest(android.support.test.filters.MediumTest)

Example 3 with RequestPinMessage

use of com.fanap.podchat.chat.pin.pin_message.model.RequestPinMessage in project pod-chat-android-sdk by FanapSoft.

the class ChatTest method pinMessage.

@Test
@MediumTest
public void pinMessage() {
    RequestPinMessage requestPinMessage = new RequestPinMessage.Builder().setMessageId(76306).setNotifyAll(true).build();
    presenter.pinMessage(requestPinMessage);
    sleep(1000);
    Mockito.verify(view, Mockito.times(1)).onPinMessage(Mockito.any());
}
Also used : RequestPinMessage(com.fanap.podchat.chat.pin.pin_message.model.RequestPinMessage) FlakyTest(android.support.test.filters.FlakyTest) MediumTest(android.support.test.filters.MediumTest) Test(org.junit.Test) LargeTest(android.support.test.filters.LargeTest) MediumTest(android.support.test.filters.MediumTest)

Example 4 with RequestPinMessage

use of com.fanap.podchat.chat.pin.pin_message.model.RequestPinMessage in project pod-chat-android-sdk by FanapSoft.

the class ChatTest method unpinMessage.

@Test
@MediumTest
public void unpinMessage() {
    sleep(25000);
    RequestPinMessage requestPinMessage = new RequestPinMessage.Builder().setMessageId(76306).build();
    presenter.unPinMessage(requestPinMessage);
    sleep(1000);
    Mockito.verify(view, Mockito.times(1)).onUnPinMessage(Mockito.any());
}
Also used : RequestPinMessage(com.fanap.podchat.chat.pin.pin_message.model.RequestPinMessage) FlakyTest(android.support.test.filters.FlakyTest) MediumTest(android.support.test.filters.MediumTest) Test(org.junit.Test) LargeTest(android.support.test.filters.LargeTest) MediumTest(android.support.test.filters.MediumTest)

Example 5 with RequestPinMessage

use of com.fanap.podchat.chat.pin.pin_message.model.RequestPinMessage in project pod-chat-android-sdk by FanapSoft.

the class ChatTestSandbox method unpinMessage.

@Test
@MediumTest
public void unpinMessage() {
    sleep(25000);
    RequestPinMessage requestPinMessage = new RequestPinMessage.Builder().setMessageId(76306).build();
    presenter.unPinMessage(requestPinMessage);
    sleep(1000);
    Mockito.verify(view, Mockito.times(1)).onUnPinMessage(Mockito.any());
}
Also used : RequestPinMessage(com.fanap.podchat.chat.pin.pin_message.model.RequestPinMessage) FlakyTest(android.support.test.filters.FlakyTest) MediumTest(android.support.test.filters.MediumTest) Test(org.junit.Test) LargeTest(android.support.test.filters.LargeTest) MediumTest(android.support.test.filters.MediumTest)

Aggregations

RequestPinMessage (com.fanap.podchat.chat.pin.pin_message.model.RequestPinMessage)8 FlakyTest (android.support.test.filters.FlakyTest)6 LargeTest (android.support.test.filters.LargeTest)6 MediumTest (android.support.test.filters.MediumTest)6 Test (org.junit.Test)6 GsonBuilder (com.google.gson.GsonBuilder)1