/* * Copyright (c) 2015 Tarun Gupta. * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ package com.isode.stroke.serializer.payloadserializers; import static org.junit.Assert.assertEquals; import org.junit.BeforeClass; import org.junit.Test; import com.isode.stroke.elements.ChatState; import com.isode.stroke.serializer.payloadserializers.ChatStateSerializer; public class ChatStateSerializerTest { ChatStateSerializer testling = new ChatStateSerializer(); @Test public void testSerialize_ActiveState() { ChatState priority = new ChatState(ChatState.ChatStateType.Active); String expected = ""; assertEquals(expected, testling.serialize(priority)); } @Test public void testSerialize_GoneState() { ChatState priority = new ChatState(ChatState.ChatStateType.Gone); String expected = ""; assertEquals(expected, testling.serialize(priority)); } @Test public void testSerialize_ComposingState() { ChatState priority = new ChatState(ChatState.ChatStateType.Composing); String expected = ""; assertEquals(expected, testling.serialize(priority)); } @Test public void testSerialize_PausedState() { ChatState priority = new ChatState(ChatState.ChatStateType.Paused); String expected = ""; assertEquals(expected, testling.serialize(priority)); } @Test public void testSerialize_InactiveState() { ChatState priority = new ChatState(ChatState.ChatStateType.Inactive); String expected = ""; assertEquals(expected, testling.serialize(priority)); } }